gitlab-org--gitlab-foss/lib/gitlab/user_access.rb
Robert Speicher 530f5158e2 Revert "Merge branch '18193-developers-can-merge' into 'master' "
This reverts commit 9ca633eb4c, reversing
changes made to fb229bbf79.
2016-07-13 13:57:30 -05:00

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