summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth.rb
diff options
context:
space:
mode:
authorGiorgenes Gelatti <ggelatti@gitlab.com>2019-09-03 02:41:22 +0000
committerThong Kuah <tkuah@gitlab.com>2019-09-03 02:41:22 +0000
commitf5b2899422c8934339fd05ff94b2fdce0e812240 (patch)
tree7be7365b6f9749d49adcff3c57f5c9596f41027a /lib/gitlab/auth.rb
parent3feab2348f6045a0d30512bcac771650ac03c68c (diff)
downloadgitlab-ce-f5b2899422c8934339fd05ff94b2fdce0e812240.tar.gz
If user can push to docker then it can delete too
Extends the permission of $CI_REGISTRY_USER to allow them to delete tags in addition to just pushing. https://gitlab.com/gitlab-org/gitlab-ce/issues/40096
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r--lib/gitlab/auth.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb
index 6769bd95c2b..bdc46abeb9f 100644
--- a/lib/gitlab/auth.rb
+++ b/lib/gitlab/auth.rb
@@ -265,7 +265,8 @@ module Gitlab
:read_project,
:build_download_code,
:build_read_container_image,
- :build_create_container_image
+ :build_create_container_image,
+ :build_destroy_container_image
]
end