stable
Clone or download
Read-only
Memberships to private without restricted project are removed when a user becomes restricted
Switching a user to restricted remove him/her to all the projects that are in the private without restricted mode. A confirmation is requested by a modal when the user is going to be removed from at least one project. The purge is done in a system event as it might take a while. 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: I98c3e9a1471411dade5fa8ac65fc2b95c85b524d
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +22 | −4 | Go to diff View file |
A | src/common/User/Admin/RestrictedProjectsUserCounter.php | +60 | −0 | Go to diff View file |
M | src/common/User/Admin/UserDetailsPresenter.php | +12 | −9 | Go to diff View file |
M | src/common/dao/UserGroupDao.class.php | +14 | −0 | Go to diff View file |
M | src/common/system_event/SystemEvent.class.php | +2 | −2 | Go to diff View file |
M | src/common/system_event/SystemEventManager.class.php | +21 | −2 | Go to diff View file |
A | src/common/system_event/include/SystemEventUserActiveStatusChange.php | +132 | −0 | Go to diff View file |
D | src/common/system_event/include/SystemEvent_USER_CREATE.class.php | +0 | −81 | Go to diff View file |
M | src/db/mysql/database_structure.sql | +2 | −2 | Go to diff View file |
A | src/db/mysql/updates/2019/201904191400_rename_type_systemevent_user_create.php | +47 | −0 | Go to diff View file |
M | src/templates/admin/users/user.mustache | +32 | −1 | Go to diff View file |
M | src/www/admin/usergroup.php | +5 | −1 | Go to diff View file |
M | src/www/scripts/admin/userdetails.js | +75 | −2 | Go to diff View file |
A | tests/phpunit/common/SystemEvent/SystemEventUserActiveStatusChangeTest.php | +92 | −0 | Go to diff View file |
A | tests/phpunit/common/User/Admin/RestrictedProjectsUserCounterTest.php | +66 | −0 | Go to diff View file |
M | tests/psalm/tuleap-baseline.xml | +0 | −12 | Go to diff View file |
M | tests/rest/tests/SystemEventTest.php | +2 | −2 | Go to diff View file |