diff options
author | Peter Bábics <peter.ntx@gmail.com> | 2019-03-07 14:14:54 +0300 |
---|---|---|
committer | Peter Bábics <peter.ntx@gmail.com> | 2019-03-19 01:04:29 +0300 |
commit | eadee27a3f9753d446a7e29c1a24eb773443f1d7 (patch) | |
tree | a3693544a74284d47e8f767788e91568327526b7 /app/services/auth | |
parent | 5c59ff3df2c50696cbffffe38a82c8767d3e2a88 (diff) |
Add support for deleting images in registry 2.7
Diffstat (limited to 'app/services/auth')
-rw-r--r-- | app/services/auth/container_registry_authentication_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb index e95ba09c006..707caee482c 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -116,7 +116,7 @@ module Auth build_can_pull?(requested_project) || user_can_pull?(requested_project) || deploy_token_can_pull?(requested_project) when 'push' build_can_push?(requested_project) || user_can_push?(requested_project) - when '*' + when '*', 'delete' user_can_admin?(requested_project) else false |