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

Remove unecessary nesting.

parent 944d9eee
......@@ -37,10 +37,8 @@ module Gitlab
member_uids.include?(user.uid)
elsif member_dns.include?(user.dn)
true
else
if Gitlab.config.ldap.active_directory
adapter.dn_matches_filter?(user.dn, active_directory_recursive_memberof_filter)
end
elsif Gitlab.config.ldap.active_directory
adapter.dn_matches_filter?(user.dn, active_directory_recursive_memberof_filter)
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