diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-10 10:31:30 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-04-10 10:31:30 +0300 |
commit | 3e35f65394fad201a9277667772f3ad9c6940d07 (patch) | |
tree | a29edb1313437b8a242d01142a8a00c94dc6cd2f /app/models | |
parent | bc841c7db9c37f6ea91911cb921db07608d8bdec (diff) |
Verify that deploy token has valid access when pulling container registry image
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/deploy_token.rb | 2 |
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 |