stable

Clone or download

Read-only

feat: Extend available groups for MW READ permission

MediaWiki administrators should be able to set READ permission for anonymous, registered, or authenticated user groups, according to platform access. If platform access is changed (e.g. from anonymous to registered) then MW permissions that were set now irrelevant ugroups (e.g. anonymous) are changed to registered. Part of story #25733: manage mediawiki permissions Change-Id: If642124d123d945a21958cb654c0505f0dce1faa

Modified Files

Name
M plugins/mediawiki_standalone/db/install.sql +2 −1 Go to diff View file
A plugins/mediawiki_standalone/db/mysql/updates/2022/202212021050_add_index_on_ugroup_id.php +39 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenterBuilder.php +1 −1 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/IUpdatePermissionsFollowingSiteAccessChange.php +30 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/MediawikiPermissionsDao.php +19 −1 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/PermissionsFollowingSiteAccessChangeUpdater.php +42 −0 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +4 −0 Go to diff View file
M plugins/mediawiki_standalone/templates/project-admin-permissions.mustache +1 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/integration/Permissions/MediawikiPermissionsDaoTest.php +71 −2 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsControllerTest.php +1 −1 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsPresenterBuilderTest.php +76 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/IBuildUserPermissionsStub.php +1 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/ISaveProjectPermissionsStub.php +1 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/ISearchByProjectAndPermissionStub.php +1 −1 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/IUpdatePermissionsFollowingSiteAccessChangeStub.php +58 −0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/PermissionsFollowingSiteAccessChangeUpdaterTest.php +64 −0 Go to diff View file
M src/common/User/ForgeUserGroupFactory.php +16 −2 Go to diff View file
M tests/lib/Builders/ProjectUGroupTestBuilder.php +24 −0 Go to diff View file