1 2 3 4 5 6 7 8 9 10 11 12 13 14
module Gitlab module UserAccess def self.allowed?(user) return false if user.blocked? if user.requires_ldap_check? && Gitlab::LDAP::Access.try_lock_user(user) return Gitlab::LDAP::Access.allowed?(user) end end true end end end