Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-04-06 04:04:11 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2018-04-07 05:20:16 +0300
commita475411f4380ef4d0260940206e2553da3b2f3ee (patch)
treef9e67c7dc2476f57fdf30a2a9e55eb323759d0b6 /lib/gitlab/auth.rb
parent2c6c61815edada16c4477c938209c24c647e1798 (diff)
Fixes broken schema and minor changes
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r--lib/gitlab/auth.rb4
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|