stable

Clone or download

Read-only

(Dis)allow restricted users to create projects

Until now (old project creation) it was possible to configure that with tweaking of (in)famous /etc/tuleap/site-content/en_US/include/restricted_user_permissions.txt There is now a dedicated configuration var for that. This commit is a bit fat because the new conf is integrated properly in ProjectRegistrationUserPermissionChecker that had to be refactored. Part of story #8283: Enhance project creation user experience Change-Id: I2022e2b9a5acf3ff4728017b8fa1c165d72d998d

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
M src/common/CLI/Events/GetWhitelistedKeys.php +1 −0 Go to diff View file
M src/common/Project/OneStepCreation/OneStepCreationController.class.php +16 −6 Go to diff View file
M src/common/Project/OneStepCreation/OneStepCreationRouter.class.php +11 −3 Go to diff View file
M src/common/Project/ProjectManager.class.php +2 −29 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +5 −1 Go to diff View file
M src/common/Project/REST/v1/RestProjectCreator.php +15 −2 Go to diff View file
R src/www/scripts/tuleap/admin-project-creation-moderation.js Go to diff View file
A src/common/Project/Registration/LimitedToSiteAdministratorsException.php +29 −0 Go to diff View file
A src/common/Project/Registration/MaxNumberOfProjectReachedException.php +28 −0 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationController.php +6 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationUserPermissionChecker.php +44 −17 Go to diff View file
A src/common/Project/Registration/RegistrationForbiddenException.php +28 −0 Go to diff View file
A src/common/Project/Registration/RestrictedUsersNotAllowedException.php +28 −0 Go to diff View file
M src/common/Request/RouteCollector.php +1 −1 Go to diff View file
M src/common/admin/ProjectCreationModerationDisplayController.php +3 −2 Go to diff View file
M src/common/admin/ProjectCreationModerationPresenter.php +13 −4 Go to diff View file
M src/common/admin/ProjectCreationModerationUpdateController.php +2 −0 Go to diff View file
M src/common/dao/ProjectDao.class.php +2 −5 Go to diff View file
M src/templates/admin/projects/moderation.mustache +19 −0 Go to diff View file
M src/www/project/register.php +2 −1 Go to diff View file
M tests/phpunit/common/Project/REST/v1/RestProjectCreatorTest.php +12 −2 Go to diff View file
M tests/phpunit/common/Project/Registration/ProjectRegistrationUserPermissionCheckerTest.php +100 −38 Go to diff View file