mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Merge branch 'docker-registry' into docker-registry-view
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user