stable

Clone or download

Read-only

Block Agiledashboard REST routes

part of story #12160 - have a clean way to suspend a project Routes to test: - get /backlog_items/{id} - get /backlog_items/{id}/children - patch /backlog_items/{id}/children - get /milestones/{id} - get /milestones/{id}/backlog - get /milestones/{id}/burndown - get /milestones/{id}/cardwall - get /milestones/{id}/content - get /milestones/{id}/milestones - get /milestones/{id}/siblings - patch /milestones/{id}/backlog - patch /milestones/{id}/content - patch /milestones/{id}/milestones - post /milestones/{id}/backlog - put /milestones/{id}/backlog - put /milestones/{id}/content - put /milestones/{id}/milestones - get /plannings/{id}/milestones 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: I6b74d09dcb27cfe9ea20fd2da0b67338a1a85e14

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/REST/v1/BacklogItemResource.php +20 −3 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/MilestoneResource.class.php +102 −27 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/PlanningResource.class.php +16 −5 Go to diff View file