530f5158e2
This reverts commit9ca633eb4c
, reversing changes made tofb229bbf79
.
13 lines
268 B
Ruby
13 lines
268 B
Ruby
module Gitlab
|
|
module UserAccess
|
|
def self.allowed?(user)
|
|
return false if user.blocked?
|
|
|
|
if user.requires_ldap_check? && user.try_obtain_ldap_lease
|
|
return false unless Gitlab::LDAP::Access.allowed?(user)
|
|
end
|
|
|
|
true
|
|
end
|
|
end
|
|
end
|