diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-05 22:02:13 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 21:20:17 -0500 |
commit | c4f56a88029c1fe73bf6efb062b5f77a65282fed (patch) | |
tree | 890a869e8ce06a5438b38c8e9dca9529362cc2f4 /app/services/auth | |
parent | a475411f4380ef4d0260940206e2553da3b2f3ee (diff) | |
download | gitlab-ce-c4f56a88029c1fe73bf6efb062b5f77a65282fed.tar.gz |
Increase test suite around deploy tokens behavior
Also, fixes broken specs
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 bb3ab856467..425ceb9c1a8 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -143,7 +143,7 @@ module Auth def user_can_pull?(requested_project) has_authentication_ability?(:read_container_image) && - can_user?(:read_container_image, requested_project) + can?(current_user, :read_container_image, requested_project) end def deploy_token_can_pull?(requested_project) |