stable

Clone or download

Read-only

We should not be able to remove the last site administration 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: If2da44b2752dc4cf59a18b666fc467bf68093516

Modified Files

Name
M plugins/mediawiki/include/ForgeUserGroupPermission/MediawikiAdminAllProjects.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/ForgeUserGroupPermission/TrackerAdminAllProjects.php +1 −1 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +5 −0 Go to diff View file
M site-content/tuleap-core.pot +3 −0 Go to diff View file
A src/common/admin/PermissionDelegation/PermissionPresenter.php +42 −0 Go to diff View file
A src/common/admin/PermissionDelegation/PermissionPresenterBuilder.php +40 −0 Go to diff View file
M src/common/admin/PermissionDelegationController.php +45 −3 Go to diff View file
M src/common/admin/PermissionDelegationGroupPresenter.php +3 −4 Go to diff View file
M src/common/autoload.php +6 −2 Go to diff View file
M src/common/user/ForgeUserGroupPermission.class.php +22 −5 Go to diff View file
M src/common/user/ForgeUserGroupPermission/ProjectApproval.class.php +10 −5 Go to diff View file
M src/common/user/ForgeUserGroupPermission/RetrieveSystemEventsInformationApi.class.php +1 −1 Go to diff View file
M src/common/user/ForgeUserGroupPermission/RetrieveUserMembershipInformation.class.php +11 −6 Go to diff View file
M src/common/user/ForgeUserGroupPermission/SiteAdministratorPermission.php +16 −1 Go to diff View file
A src/common/user/ForgeUserGroupPermission/SiteAdministratorPermissionChecker.php +41 −0 Go to diff View file
M src/common/user/ForgeUserGroupPermission/UserManagement.class.php +9 −5 Go to diff View file
M src/common/user/ForgeUserGroupPermissionsDao.class.php +11 −2 Go to diff View file
A src/common/user/UserCannotRemoveLastAdministrationPermission.php +27 −0 Go to diff View file
M src/templates/admin/permission_delegation/permissions_list.mustache +14 −3 Go to diff View file
M src/www/admin/permission_delegation.php +9 −1 Go to diff View file
A tests/simpletest/common/user/ForgeUserGroupPermission/SiteAdministratorPermissionCheckerTest.php +57 −0 Go to diff View file