13 lines
238 B
Ruby
13 lines
238 B
Ruby
module Gitlab
|
|
module UserAccess
|
|
def self.allowed?(user)
|
|
return false if user.blocked?
|
|
|
|
if user.requires_ldap_check?
|
|
return false unless Gitlab::LDAP::Access.allowed?(user)
|
|
end
|
|
|
|
true
|
|
end
|
|
end
|
|
end
|