diff options
Diffstat (limited to 'lib/gitlab/auth.rb')
| -rw-r--r-- | lib/gitlab/auth.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb index 336cdbab5f0..d03b1caca91 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -184,9 +184,9 @@ module Gitlab return unless token return unless login != "gitlab+deploy-token-#{token.id}" - + scopes = abilities_for_scopes(token.scopes) - if valid_scoped_token?(token, scopes) + if valid_scoped_token?(token, available_scopes) Gitlab::Auth::Result.new(token, token.project, :deploy_token, scopes) end end |
