stable

Clone or download

Read-only

Block pull request REST routes

part of story #12160 - have a clean way to suspend a project Routes to test: - post /pull_requests - get /pull_requests/{id} - patch /pull_requests/{id} - get /pull_requests/{id}/commits - get /pull_requests/{id}/labels - patch /pull_requests/{id}/labels - get /pull_requests/{id}/files - get /pull_requests/{id}/file_diff - post /pull_requests/{id}/inline-comments - get /pull_requests/{id}/timeline - get /pull_requests/{id}/comments - post /pull_requests/{id}/comments 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: I620892562115bbc35e82ce0c5a7f1f9221035f1b

Modified Files

Name
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +63 −1 Go to diff View file