diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-14 14:22:45 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-14 14:22:45 -0500 |
commit | d40bd7419f9ca0f7caedef05209b86e7431dd882 (patch) | |
tree | cf7355816a4c7acd6ce90ef105ad795d70b64c92 /app/services/auth | |
parent | 46cc04ce7a374127dd617c8fd2671efed2819cda (diff) | |
download | gitlab-ce-d40bd7419f9ca0f7caedef05209b86e7431dd882.tar.gz |
Fix authentication service
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 0323a42b697..100f7cbae28 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -54,7 +54,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 |