stable

Clone or download

Read-only

Ensure the last project administrator can not be removed

As of today checks are only done client side so if you bypass them you can remove the last project administrator if you want to. This is part of story #12161: have a project owner at project creation Change-Id: Ia8b896363e0f0afafa57f2e902b6693ab1cd168c

Modified Files

Name
A src/common/project/Admin/ProjectUGroup/CannotRemoveLastProjectAdministratorException.php +31 −0 Go to diff View file
M src/common/project/Admin/ProjectUGroup/DynamicUGroupMembersUpdater.php +16 −2 Go to diff View file
M src/common/project/Admin/ProjectUGroup/MembersController.php +8 −1 Go to diff View file
M src/common/project/UserPermissionsDao.php +22 −1 Go to diff View file
A tests/phpunit/common/Project/DynamicUGroupMembersUpdaterTest.php +93 −0 Go to diff View file