提交 a6e41538 编写于 作者: J Jacob Vosmaer

Check for the AD disabled flag in Access#allowed?

上级 a754f0b2
......@@ -14,7 +14,11 @@ module Gitlab
end
def allowed?(user)
!!Gitlab::LDAP::Person.find_by_dn(user.extern_uid, adapter)
if Gitlab::LDAP::Person.find_by_dn(user.extern_uid, adapter)
!Gitlab::LDAP::Person.ad_disabled?(user.extern_uid, adapter)
else
false
end
rescue
false
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册