Skip to content
Snippets Groups Projects
Commit cf042068 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Do not allow registry requests for invalid repositories

parent fffc8a59
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -64,6 +64,10 @@ module Auth
end
 
def process_repository_access(type, path, actions)
# TODO, add specs for invalid paths
#
return unless path.valid?
requested_project = path.repository_project
 
return unless requested_project
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment