diff options
author | jean <jeanpralo@gmail.com> | 2016-08-01 03:38:16 +0000 |
---|---|---|
committer | Jean Praloran <jeanpralo@gmail.com> | 2017-05-30 07:11:28 +1200 |
commit | fcca3e6edd4eb83875d77564e98d1fa6ef504332 (patch) | |
tree | 80176b3d3518b35885f40909e05324c5b1aef165 /app/services/auth | |
parent | 1ac12698c613774bdace72475573916c142a07e4 (diff) | |
download | gitlab-ce-fcca3e6edd4eb83875d77564e98d1fa6ef504332.tar.gz |
add star for action scope, in order to delete image from registry
Diffstat (limited to 'app/services/auth')
-rw-r--r-- | app/services/auth/container_registry_authentication_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb index 5e151b0f044..c066fab04ab 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -103,6 +103,8 @@ module Auth build_can_pull?(requested_project) || user_can_pull?(requested_project) when 'push' build_can_push?(requested_project) || user_can_push?(requested_project) + when '*' + requested_project == project || can?(current_user, :create_container_image, requested_project) else false end |