Do not allow registry requests for invalid repositories

This commit is contained in:
Grzegorz Bizon 2017-03-30 15:41:51 +02:00
parent fffc8a59d7
commit cf042068b5

View file

@ -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