BigW Consortium Gitlab

Commit 5c194762 by Kamil Trzcinski

Merge branch 'docker-registry' into docker-registry-view

parents 9eeea424 715a8cfa
......@@ -67,6 +67,8 @@ module Auth
end
def can_access?(requested_project, requested_action)
return false unless requested_project.container_registry_enabled?
case requested_action
when 'pull'
requested_project == project || can?(current_user, :read_container_registry, requested_project)
......
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