diff options
author | Giorgenes Gelatti <ggelatti@gitlab.com> | 2019-09-03 05:41:22 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-09-03 05:41:22 +0300 |
commit | f5b2899422c8934339fd05ff94b2fdce0e812240 (patch) | |
tree | 7be7365b6f9749d49adcff3c57f5c9596f41027a /lib/gitlab/auth.rb | |
parent | 3feab2348f6045a0d30512bcac771650ac03c68c (diff) |
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.rb | 3 |
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 |