stable

Clone or download

Read-only

request #12991 Project admin can't see all workflow transitions

As project admin, using the new Workflow Admin UI for convenience, it can be done by REST alone, Given a user group "MyUserGroup" that I am not member of, When I edit an existing transition and select "MyUserGroup" for the user groups that have permission to process the transition (in pre-conditions), Then upon refresh I will no longer see that transition. The REST API GET /trackers/:id will omit it, so the new UI will not list it. Instead of this, as I am project admin and am in charge of configuring this, I should bypass permissions and see all transitions. In addition, all tracker administrators could be able to process any transition. Change-Id: Ia5babc76ded0a7b0907e639bc0367308a8f4448c

Modified Files

Name
M plugins/tracker/include/REST/TrackerRestBuilder.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Workflow/Transition/Condition/Permissions.class.php +12 −6 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/Transition/Condition/PermissionsTest.php +99 −0 Go to diff View file
D plugins/tracker/tests/workflow/Transition/Condition/Permissions/PermissionsTest.php +0 −64 Go to diff View file