stable

Clone or download

Read-only

Filter REST projects/:id/trackers with tracker admin permissions

This is part of story #11347 have a UI to accesss Move artifact A query like {"is_tracker_admin": true} can be added to GET projects/:id/trackers to filter trackers that user is administrator of. {"is_tracker_admin": false} is not taken into account and will throw an error. Change-Id: I6dacd97c9a499441214cd764a748b63cdb267bed

Modified Files

Name
M plugins/tracker/include/REST/v1/ProjectTrackersResource.class.php +45 −4 Go to diff View file
M plugins/tracker/include/Tracker/TrackerFactory.class.php +2 −2 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +3 −1 Go to diff View file
M plugins/tracker/tests/rest/DataBuilder.php +0 −1 Go to diff View file
A plugins/tracker/tests/rest/TrackerAdministrator/ProjectTrackerTest.php +73 −0 Go to diff View file
M plugins/tracker/tests/rest/TrackerBase.php +2 −0 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/TrackerAdministrator/project.xml +14 −3 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/TrackerAdministrator/users.xml +7 −0 Go to diff View file
M src/common/project/REST/v1/ProjectResource.class.php +24 −5 Go to diff View file