mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Don't allow full access to guests in ReferenceExtractor
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user