Fix user_can_reference_group?
check
This commit is contained in:
parent
52909f8bdb
commit
c4eb6a55f1
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue