Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-27 14:18:15 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-02 11:57:01 +0300
commit756e7aa8c347ccf211db03a7fa16ab33c021f820 (patch)
treed9ce400cc9788e46f13b87fb362db1049cc425c2 /lib/gitlab/reference_extractor.rb
parentd9698628d9042e820917e1144535888da147c228 (diff)
Don't allow full access to guests in ReferenceExtractor
Diffstat (limited to 'lib/gitlab/reference_extractor.rb')
-rw-r--r--lib/gitlab/reference_extractor.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/gitlab/reference_extractor.rb b/lib/gitlab/reference_extractor.rb
index 422d35aceb7..719274394f0 100644
--- a/lib/gitlab/reference_extractor.rb
+++ b/lib/gitlab/reference_extractor.rb
@@ -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