Fix user_can_reference_group? check

This commit is contained in:
Robert Speicher 2015-04-14 17:33:44 -04:00
parent 52909f8bdb
commit c4eb6a55f1

View file

@ -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