Commit 621687bf authored by Robert Speicher's avatar Robert Speicher

Fix `user_can_reference_project?` check

parent b905702d
...@@ -29,7 +29,7 @@ module Gitlab ...@@ -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
......
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