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
path: root/lib
diff options
context:
space:
mode:
authorGiorgenes Gelatti <ggelatti@gitlab.com>2019-09-03 05:41:22 +0300
committerThong Kuah <tkuah@gitlab.com>2019-09-03 05:41:22 +0300
commitf5b2899422c8934339fd05ff94b2fdce0e812240 (patch)
tree7be7365b6f9749d49adcff3c57f5c9596f41027a /lib
parent3feab2348f6045a0d30512bcac771650ac03c68c (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')
-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