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
diff options
context:
space:
mode:
authorJean Praloran <jeanpralo@gmail.com>2017-03-17 06:40:57 +0300
committerJean Praloran <jeanpralo@gmail.com>2017-05-29 22:11:28 +0300
commitd890c6e81b696a5c02fe8138a76a4d113ee8ba93 (patch)
treea358383852900f6fc0b04abdaec66ae1fec5d15a /app/services/auth
parent6c9da292418c606aefe34aab40923d5730ae9aa5 (diff)
fix typo and check
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 335cfdbc231..9622ce64d9f 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -122,7 +122,7 @@ module Auth
(requested_project == project || can?(current_user, :build_read_container_image, requested_project))
end
- def user_can_delete(requested_project)
+ def user_can_delete?(requested_project)
has_authentication_ability?(:admin_container_image) &&
can?(current_user, :admin_container_image, requested_project)
end