diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-14 14:23:00 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-14 14:23:00 -0500 |
commit | 9eeea4245b3c97505ec5f877b282a80dcd2da5fb (patch) | |
tree | 221fc4b031d0b7497beabf85d33b104e9c62b1ba | |
parent | 284dc3285a4ec2a626e90b16ca3d372eed82d349 (diff) | |
parent | d40bd7419f9ca0f7caedef05209b86e7431dd882 (diff) | |
download | gitlab-ce-9eeea4245b3c97505ec5f877b282a80dcd2da5fb.tar.gz |
Merge branch 'docker-registry' into docker-registry-view
-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 e7aa7faeb96..fcd02c02868 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -69,7 +69,7 @@ module Auth def can_access?(requested_project, requested_action) case requested_action when 'pull' - requested_project.public? || requested_project == project || can?(current_user, :read_container_registry, requested_project) + requested_project == project || can?(current_user, :read_container_registry, requested_project) when 'push' requested_project == project || can?(current_user, :create_container_registry, requested_project) else |