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:
authorMayra Cabrera <mcabrera@gitlab.com>2018-04-10 10:31:30 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-04-10 10:31:30 +0300
commit3e35f65394fad201a9277667772f3ad9c6940d07 (patch)
treea29edb1313437b8a242d01142a8a00c94dc6cd2f /app/models/deploy_token.rb
parentbc841c7db9c37f6ea91911cb921db07608d8bdec (diff)
Verify that deploy token has valid access when pulling container registry image
Diffstat (limited to 'app/models/deploy_token.rb')
-rw-r--r--app/models/deploy_token.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deploy_token.rb b/app/models/deploy_token.rb
index b47b2ff4c3f..8dae821a10e 100644
--- a/app/models/deploy_token.rb
+++ b/app/models/deploy_token.rb
@@ -34,7 +34,7 @@ class DeployToken < ActiveRecord::Base
end
def has_access_to?(requested_project)
- project == requested_project
+ active? && project == requested_project
end
# This is temporal. Currently we limit DeployToken