stable

Clone or download

Read-only

Block Git/Gerrit REST routes

part of story #12160 - have a clean way to suspend a project Routes to test: - get /gerrit - get /git/{id} - patch /git/{id} - get /git/{id}/pull_requests - post /git - post /git/{id}/build_status - post /git/{id_or_path}/statuses/{commit_reference} - get /git/{id}/files - get /git/{id}/branches - get /git/{id}/tags How to test: - For siteadmin --> GET routes still works if the project is suspended --> Other routes throw 403 errors - For regular users --> 403 errors, 403 errors everywhere Change-Id: I98c4c08c6c728f8a1500659333c4a3066b68cfb0

Modified Files

Name
M plugins/git/include/REST/v1/GerritResource.php +10 −4 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +17 −0 Go to diff View file