diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-05 20:04:11 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 21:20:16 -0500 |
commit | a475411f4380ef4d0260940206e2553da3b2f3ee (patch) | |
tree | f9e67c7dc2476f57fdf30a2a9e55eb323759d0b6 /lib/gitlab/auth.rb | |
parent | 2c6c61815edada16c4477c938209c24c647e1798 (diff) | |
download | gitlab-ce-a475411f4380ef4d0260940206e2553da3b2f3ee.tar.gz |
Fixes broken schema and minor changes
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 d03b1caca91..13a59bb4a76 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -164,8 +164,8 @@ module Gitlab def abilities_for_scopes(scopes) abilities_by_scope = { api: full_authentication_abilities, - read_registry: build_authentication_abilities - [:build_create_container_image], - read_repository: read_authentication_abilities - [:read_container_image] + read_registry: [:build_read_container_image], + read_repository: [:download_code] } scopes.flat_map do |scope| |