Don't allow full access to guests in ReferenceExtractor
This commit is contained in:
parent
d9698628d9
commit
756e7aa8c3
|
|
@ -13,9 +13,6 @@ module Gitlab
|
|||
end
|
||||
|
||||
def can?(user, action, subject)
|
||||
# When extracting references, no user means access to everything.
|
||||
return true if user.nil?
|
||||
|
||||
Ability.abilities.allowed?(user, action, subject)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue