summaryrefslogtreecommitdiff
path: root/app/services/auth
diff options
context:
space:
mode:
authorJean Praloran <jeanpralo@gmail.com>2016-09-09 11:16:42 +1200
committerJean Praloran <jeanpralo@gmail.com>2017-05-30 07:11:28 +1200
commit8ef46b9f46711145496da4b3e64b0b7ace80c2ad (patch)
treeb9b9ee2c3664dc4c5ff00d74da296607cb61bff1 /app/services/auth
parentfcca3e6edd4eb83875d77564e98d1fa6ef504332 (diff)
downloadgitlab-ce-8ef46b9f46711145496da4b3e64b0b7ace80c2ad.tar.gz
change ability requirement
Diffstat (limited to 'app/services/auth')
-rw-r--r--app/services/auth/container_registry_authentication_service.rb2
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 c066fab04ab..99a3d9c2cf9 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -104,7 +104,7 @@ module Auth
when 'push'
build_can_push?(requested_project) || user_can_push?(requested_project)
when '*'
- requested_project == project || can?(current_user, :create_container_image, requested_project)
+ requested_project == project || can?(current_user, :admin_container_image, requested_project)
else
false
end