Fix user_can_reference_project? check

This commit is contained in:
Robert Speicher 2015-04-16 13:05:49 -04:00
parent b905702d4f
commit 621687bfdf

View file

@ -29,7 +29,7 @@ module Gitlab
end end
def user_can_reference_project?(project, user = context[:current_user]) def user_can_reference_project?(project, user = context[:current_user])
user && Ability.abilities.allowed?(user, :read_project, project) Ability.abilities.allowed?(user, :read_project, project)
end end
end end
end end