Skip to content
Snippets Groups Projects
Commit 756e7aa8 authored by Douwe Maan's avatar Douwe Maan
Browse files

Don't allow full access to guests in ReferenceExtractor

parent d9698628
No related branches found
No related tags found
No related merge requests found
Loading
@@ -13,9 +13,6 @@ module Gitlab
Loading
@@ -13,9 +13,6 @@ module Gitlab
end end
   
def can?(user, action, subject) 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) Ability.abilities.allowed?(user, action, subject)
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment