Commit d40bd741 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix authentication service

parent 46cc04ce
...@@ -54,7 +54,7 @@ module Auth ...@@ -54,7 +54,7 @@ module Auth
def can_access?(requested_project, requested_action) def can_access?(requested_project, requested_action)
case requested_action case requested_action
when 'pull' 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' when 'push'
requested_project == project || can?(current_user, :create_container_registry, requested_project) requested_project == project || can?(current_user, :create_container_registry, requested_project)
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment