Commit c4eb6a55 authored by Robert Speicher's avatar Robert Speicher

Fix `user_can_reference_group?` check

parent 52909f8b
......@@ -118,7 +118,6 @@ module Gitlab
end
def user_can_reference_group?(group)
return false if context[:current_user].blank?
Ability.abilities.allowed?(context[:current_user], :read_group, group)
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