stable
Clone or download
Read-only
The project members are cleaned but all the members of ugroups of this project are also purged from the restricted users. A confirmation is requested by a modal when at least one user is going to be removed by the roject visibility change. The purge of the restricted users is done in the system event PROJECT_IS_PRIVATE as it might take a while on large projects. To test, you will need to enable the "private without restricted" mode by setting the global parameter feature_flag_project_without_restricted to 1. This is part of story #13237: Prevent restricted to be added to private projects Change-Id: I80f3232db0207cac6bf7358eeb492ed68dcefca2
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +21 | −2 | Go to diff View file |
M | src/common/Project/Admin/ProjectVisibilityPresenter.class.php | +8 | −1 | Go to diff View file |
M | src/common/Project/Admin/ProjectVisibilityPresenterBuilder.php | +11 | −4 | Go to diff View file |
A | src/common/Project/Admin/RestrictedUsersProjectCounter.php | +51 | −0 | Go to diff View file |
M | src/common/dao/UserDao.class.php | +12 | −6 | Go to diff View file |
M | src/common/system_event/SystemEventManager.class.php | +19 | −1 | Go to diff View file |
M | src/common/system_event/include/SystemEvent_PROJECT_IS_PRIVATE.class.php | +71 | −30 | Go to diff View file |
M | src/templates/project/project_visibility.mustache | +31 | −0 | Go to diff View file |
M | src/www/admin/userlist.php | +2 | −2 | Go to diff View file |
M | src/www/project/admin/editgroupinfo.php | +4 | −2 | Go to diff View file |
M | src/www/scripts/project/admin/project-admin.js | +63 | −2 | Go to diff View file |
A | tests/phpunit/common/Project/Admin/RestrictedUsersProjectCounterTest.php | +65 | −0 | Go to diff View file |
A | tests/phpunit/common/SystemEvent/SystemEventPROJECTISPRIVATETest.php | +112 | −0 | Go to diff View file |