stable

Clone or download

Read-only

feat: Prevent access to project not imported

While the project is being imported, one should not be able to access it (even site admin). Have a project with status = X. You should not be able to access to its pages. Part of story #36484 create a new project from an XML template Change-Id: I203b2304a9bca4233ad204ec6e8c41c8c5e4670e

Modified Files

Name
M plugins/tracker/include/Tracker/Admin/GlobalAdmin/GlobalAdminPermissionsChecker.php +4 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Admin/GlobalAdmin/GlobalAdminPermissionsCheckerTest.php +40 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Permission/PermissionCheckerTest.php +1 −3 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
A src/common/Project/AccessArchiveNotImportedYetException.php +31 −0 Go to diff View file
M src/common/Project/AccessNotActiveException.php +3 −3 Go to diff View file
M src/common/Project/Admin/ProjectMembers/UserCanManageProjectMembersChecker.php +4 −0 Go to diff View file
M src/common/Project/Admin/Routing/ProjectAdministratorChecker.php +1 −1 Go to diff View file
M src/common/Project/CheckProjectAccess.php +1 −0 Go to diff View file
M src/common/Project/ProjectAccessChecker.php +5 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +1 −1 Go to diff View file
M tests/lib/Builders/ProjectTestBuilder.php +6 −0 Go to diff View file
M tests/unit/common/FRS/FRSReleaseFactoryTest.php +4 −7 Go to diff View file
M tests/unit/common/Project/Admin/ProjectMembers/UserCanManageProjectMembersCheckerTest.php +20 −0 Go to diff View file
M tests/unit/common/Project/Service/EditControllerTest.php +2 −0 Go to diff View file