Commit 51f9f480 authored by Marin Jankovski's avatar Marin Jankovski

Remove unecessary nesting.

parent 944d9eee
...@@ -37,10 +37,8 @@ module Gitlab ...@@ -37,10 +37,8 @@ module Gitlab
member_uids.include?(user.uid) member_uids.include?(user.uid)
elsif member_dns.include?(user.dn) elsif member_dns.include?(user.dn)
true true
else elsif Gitlab.config.ldap.active_directory
if Gitlab.config.ldap.active_directory adapter.dn_matches_filter?(user.dn, active_directory_recursive_memberof_filter)
adapter.dn_matches_filter?(user.dn, active_directory_recursive_memberof_filter)
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment