Skip to content

Commit

Permalink
[api] Fix using nonexistent variable: group -> grouprel
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Mar 28, 2017
1 parent 135ed0b commit 8889f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/project.rb
Expand Up @@ -371,7 +371,7 @@ def self.check_access?(dbp)
# LDAP
# FIXME: please do not do special things here for ldap. please cover this in a generic group model.
if CONFIG['ldap_mode'] == :on && CONFIG['ldap_group_support'] == :on
if UserLdapStrategy.user_in_group_ldap?(User.current, group.group_id)
if UserLdapStrategy.user_in_group_ldap?(User.current, grouprel.group_id)
ret += 1
end
end
Expand Down

0 comments on commit 8889f8a

Please sign in to comment.