summaryrefslogtreecommitdiff
path: root/app/services/auth/container_registry_authentication_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/auth/container_registry_authentication_service.rb')
-rw-r--r--app/services/auth/container_registry_authentication_service.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb
index a3c8d77bf09..7e412040c7c 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -62,12 +62,7 @@ module Auth
end
def process_repository_access(type, name, actions)
- # Strips image name due to lack of
- # per image authentication.
- # Removes only last occurence in light
- # of future nested groups
- namespace, a = ContainerImage::split_namespace(name)
- requested_project = Project.find_by_full_path(namespace)
+ requested_project = ContainerImage.from_path(name).project
return unless requested_project
actions = actions.select do |action|