stable
Clone or download
Read-only
fix(baseline): Fixes request #36820 Remove a usergroup must remove its Baseline permissions
When deleting a user group in a project, if this user group has some roles in the Baseline administration, then these roles must be removed. How to test ---------- * Create a user group in a project * Grant to this user some baseline roles administration * Delete this user group => Baseline administration is still reachable and the deletion of baseline roles must be logged in project. Change-Id: Ic863d966136694bd938d7416065749abfdfc39ea
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/baseline/db/mysql/updates/2024/202402121544_delete_roles_granted_to_deleted_ugroups.php | +41 | −0 | Go to diff View file |
M | plugins/baseline/include/Adapter/Administration/RoleAssignmentsHistoryEntryAdder.php | +22 | −2 | Go to diff View file |
M | plugins/baseline/include/Adapter/RoleAssignmentRepositoryAdapter.php | +14 | −0 | Go to diff View file |
M | plugins/baseline/include/Domain/AddRoleAssignmentsHistoryEntry.php | +6 | −0 | Go to diff View file |
M | plugins/baseline/include/Domain/RoleAssignmentRepository.php | +2 | −0 | Go to diff View file |
A | plugins/baseline/include/Domain/RoleAssignmentsDeleter.php | +47 | −0 | Go to diff View file |
M | plugins/baseline/include/Domain/RoleAssignmentsHistorySaver.php | +17 | −1 | Go to diff View file |
M | plugins/baseline/include/baselinePlugin.php | +30 | −1 | Go to diff View file |
M | plugins/baseline/site-content/fr_FR/LC_MESSAGES/tuleap-baseline.po | +5 | −0 | Go to diff View file |
M | plugins/baseline/tests/integration/Adapter/RoleAssignmentRepositoryAdapterTest.php | +38 | −0 | Go to diff View file |
M | plugins/baseline/tests/unit/Adapter/Administration/RoleAssignmentsHistoryEntryAdderTest.php | +7 | −1 | Go to diff View file |
M | plugins/baseline/tests/unit/Domain/RoleAssignmentsHistorySaverTest.php | +27 | −0 | Go to diff View file |
M | plugins/baseline/tests/unit/Stub/AddRoleAssignmentsHistoryEntryStub.php | +6 | −0 | Go to diff View file |
M | plugins/baseline/tests/unit/Stub/RoleAssignmentRepositoryStub.php | +6 | −0 | Go to diff View file |
M | src/www/project/admin/ugroup_utils.php | +1 | −0 | Go to diff View file |