Fix user_can_reference_group? check

This commit is contained in:
Robert Speicher
2015-04-20 13:01:45 -04:00
parent 52909f8bdb
commit c4eb6a55f1
@@ -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