Fix user_can_reference_project?
check
This commit is contained in:
parent
b905702d4f
commit
621687bfdf
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue