diff options
author | Robin Bobbitt <ryehle@us.ibm.com> | 2017-09-15 18:43:49 +0300 |
---|---|---|
committer | Robin Bobbitt <ryehle@us.ibm.com> | 2017-09-18 15:39:01 +0300 |
commit | 0013e6c00dc1743edb35b9b35a59c09fa0a0868e (patch) | |
tree | 056cb8b6e0666450019460e8dfd334300a776397 /app/models/personal_access_token.rb | |
parent | ef37de8adb4e846db5bf7816e3f55f43b1305a03 (diff) |
Clean up read_registry scope changes
Closes #37789
Diffstat (limited to 'app/models/personal_access_token.rb')
-rw-r--r-- | app/models/personal_access_token.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/personal_access_token.rb b/app/models/personal_access_token.rb index ec0ebe4d353..1f9d712ef84 100644 --- a/app/models/personal_access_token.rb +++ b/app/models/personal_access_token.rb @@ -28,7 +28,7 @@ class PersonalAccessToken < ActiveRecord::Base protected def validate_scopes - unless revoked || scopes.all? { |scope| Gitlab::Auth::AVAILABLE_SCOPES.include?(scope.to_sym) } + unless revoked || scopes.all? { |scope| Gitlab::Auth.available_scopes.include?(scope.to_sym) } errors.add :scopes, "can only contain available scopes" end end |