stable

Clone or download

Read-only

request #25703 TTM: Open/closes modal should not rely on project administrator permissions

We should not rely on project administrator to perform action and close/open button should not appear if user can't perform those transaction. To test it : - make the status field not updatable for project members and look if you can see the close/open button - make the transition status open --> close for project members not possible and look if you can see the close/open button In both case project_member should not see the button but project_admin can see Change-Id: I496dc45b3631c99406e49e97c52ba1ea4d06c8eb

Modified Files

Name
M plugins/testmanagement/include/TestManagement/Campaign/CloseCampaignController.php +0 −4 Go to diff View file
M plugins/testmanagement/include/TestManagement/Campaign/OpenCampaignController.php +0 −4 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignRepresentation.class.php +78 −7 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignRepresentationBuilder.php +9 −39 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +18 −9 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ProjectResource.class.php +18 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-list-header/execution-list-header.tpl.html +5 −3 Go to diff View file
M plugins/testmanagement/tests/rest/TestManagement/BaseTest.php +2 −0 Go to diff View file
M plugins/testmanagement/tests/unit/TestManagement/Campaign/CloseCampaignControllerTest.php +0 −57 Go to diff View file
M plugins/testmanagement/tests/unit/TestManagement/Campaign/OpenCampaignControllerTest.php +0 −57 Go to diff View file
M plugins/tracker/include/Tracker/Rule/FirstValidValueAccordingToDependenciesRetriever.php +4 −0 Go to diff View file