daa7f077db
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
17 lines
401 B
Ruby
17 lines
401 B
Ruby
#-------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2013 GitLab.com - Distributed under the MIT Expat License
|
|
#
|
|
#-------------------------------------------------------------------
|
|
|
|
module Gitlab
|
|
module LDAP
|
|
class Access
|
|
def allowed?(user)
|
|
!!Gitlab::LDAP::Person.find_by_dn(user.extern_uid)
|
|
rescue
|
|
false
|
|
end
|
|
end
|
|
end
|
|
end
|