Do not allow registry requests for invalid repositories
This commit is contained in:
parent
fffc8a59d7
commit
cf042068b5
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue