summaryrefslogtreecommitdiff
path: root/app/services/auth
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-22 16:07:27 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-22 16:07:27 +0100
commit896b13b929369c02f72fa881eda24ca4a6a0d900 (patch)
tree43bd10fb8689144c02b139fe5ee38aa62eb84a9c /app/services/auth
parent95e2c0196b7e492f8c03c6cfeb6b37e97f75813e (diff)
downloadgitlab-ce-896b13b929369c02f72fa881eda24ca4a6a0d900.tar.gz
Refactor splitting container image full path
[ci skip]
Diffstat (limited to 'app/services/auth')
-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|