Commit cf042068 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not allow registry requests for invalid repositories

parent fffc8a59
...@@ -64,6 +64,10 @@ module Auth ...@@ -64,6 +64,10 @@ module Auth
end end
def process_repository_access(type, path, actions) def process_repository_access(type, path, actions)
# TODO, add specs for invalid paths
#
return unless path.valid?
requested_project = path.repository_project requested_project = path.repository_project
return unless requested_project return unless 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