summaryrefslogtreecommitdiff
path: root/app/controllers/profiles
diff options
context:
space:
mode:
authorRobin Bobbitt <ryehle@us.ibm.com>2017-09-15 11:43:49 -0400
committerRobin Bobbitt <ryehle@us.ibm.com>2017-09-18 08:39:01 -0400
commit0013e6c00dc1743edb35b9b35a59c09fa0a0868e (patch)
tree056cb8b6e0666450019460e8dfd334300a776397 /app/controllers/profiles
parentef37de8adb4e846db5bf7816e3f55f43b1305a03 (diff)
downloadgitlab-ce-0013e6c00dc1743edb35b9b35a59c09fa0a0868e.tar.gz
Clean up read_registry scope changes
Closes #37789
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r--app/controllers/profiles/personal_access_tokens_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/personal_access_tokens_controller.rb b/app/controllers/profiles/personal_access_tokens_controller.rb
index f748d191ef4..c1cc509a748 100644
--- a/app/controllers/profiles/personal_access_tokens_controller.rb
+++ b/app/controllers/profiles/personal_access_tokens_controller.rb
@@ -38,7 +38,7 @@ class Profiles::PersonalAccessTokensController < Profiles::ApplicationController
end
def set_index_vars
- @scopes = Gitlab::Auth::AVAILABLE_SCOPES
+ @scopes = Gitlab::Auth.available_scopes
@personal_access_token = finder.build
@inactive_personal_access_tokens = finder(state: 'inactive').execute