mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Fix user_can_reference_group? check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user