mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 11:06:10 +10:00
12 lines
184 B
Ruby
12 lines
184 B
Ruby
module Gitlab
|
|
module LDAP
|
|
class Access
|
|
def allowed?(user)
|
|
!!Gitlab::LDAP::Person.find_by_dn(user.extern_uid)
|
|
rescue
|
|
false
|
|
end
|
|
end
|
|
end
|
|
end
|