BigW Consortium Gitlab

user_access.rb 238 Bytes
Newer Older
1 2 3 4 5
module Gitlab
  module UserAccess
    def self.allowed?(user)
      return false if user.blocked?

6 7
      if user.requires_ldap_check?
        return false unless Gitlab::LDAP::Access.allowed?(user)
8 9 10 11 12 13
      end

      true
    end
  end
end