stable

Clone or download

Read-only

We should not be able to remove the last ugroup containings platform admin permission

This is part of request #10097 Removal of the administration project breaks Tuleap Check user removal of last admin will be done in a dedicated commit Change-Id: I753072cec2b2fb1b04e0dc63781041f15e14ab56

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +6 −0 Go to diff View file
M site-content/tuleap-core.pot +4 −0 Go to diff View file
M src/common/admin/PermissionDelegationController.php +30 −6 Go to diff View file
M src/common/admin/PermissionDelegationDeleteGroupModalPresenter.php +8 −5 Go to diff View file
M src/common/admin/PermissionDelegationGroupModalPresenter.php +9 −6 Go to diff View file
M src/common/admin/PermissionDelegationGroupPresenter.php +9 −34 Go to diff View file
M src/common/admin/PermissionDelegationPermissionsModalPresenter.php +3 −3 Go to diff View file
M src/common/autoload.php +4 −2 Go to diff View file
M src/common/user/ForgeUserGroupManager.class.php +17 −4 Go to diff View file
M src/common/user/ForgeUserGroupPermission/SiteAdministratorPermissionChecker.php +9 −0 Go to diff View file
A src/common/user/ForgeUserGroupPermission/UserForgeUGroupPresenter.php +46 −0 Go to diff View file
M src/common/user/ForgeUserGroupPermissionsDao.class.php +14 −0 Go to diff View file
M src/common/user/ForgeUserGroupPermissionsFactory.class.php +3 −2 Go to diff View file
A src/common/user/GroupCannotRemoveLastAdministrationPermission.php +27 −0 Go to diff View file
M src/templates/admin/permission_delegation/index.mustache +33 −27 Go to diff View file
M src/www/admin/permission_delegation.php +4 −3 Go to diff View file
M tests/simpletest/common/user/ForgeUserGroupManagerTest.php +10 −7 Go to diff View file
M tests/simpletest/common/user/ForgeUserGroupPermission/SiteAdministratorPermissionCheckerTest.php +18 −0 Go to diff View file
M tests/simpletest/common/user/ForgeUserGroupPermissionsFactoryTest.php +3 −2 Go to diff View file