stable

Clone or download

Read-only

feat: Introduce READ permission for MediaWiki standalone

By default project members can read. If database is manually updated (plugin_mediawiki_standalone_permissions) then: * permission is reflected in project ยป admin ยป permissions ยป mediawiki standalone * REST call /projects/:id/mediawiki_standalone_permissions respects the settings Update of the READ permissions via the user interface will be done in a dedicated contribution. For now the list of available user groups is limited to those of the project. Another contribution willย add anonymous/registered/authenticated to the list. Part of story #25733: manage mediawiki permissions Change-Id: I2bad65188857bb4085f85bbf19e08d6865d2ae90

Modified Files

Name
M plugins/baseline/tests/unit/ServiceAdministrationControllerTest.php +1 โˆ’1 Go to diff View file
M plugins/baseline/tests/unit/ServiceSavePermissionsControllerTest.php +1 โˆ’1 Go to diff View file
M plugins/docman/tests/unit/Metadata/Owner/OwnerRequestHandlerTest.php +5 โˆ’26 Go to diff View file
M plugins/mediawiki_standalone/composer.json +4 โˆ’1 Go to diff View file
M plugins/mediawiki_standalone/composer.lock +143 โˆ’3 Go to diff View file
M plugins/mediawiki_standalone/db/install.sql +8 โˆ’1 Go to diff View file
A plugins/mediawiki_standalone/db/mysql/updates/2022/202211300833_add_permissions_table.php +45 โˆ’0 Go to diff View file
M plugins/mediawiki_standalone/db/uninstall.sql +3 โˆ’1 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsController.php +100 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenter.php +41 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenterBuilder.php +67 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Admin/CSRFSynchronizerTokenProvider.php +33 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Admin/RejectNonMediawikiAdministratorMiddleware.php +59 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Admin/UserGroupPresenter.php +33 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/IBuildUserPermissions.php +29 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/ISearchByProjectAndPermission.php +31 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/MediawikiPermissionsDao.php +43 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/Permission.php +28 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/PermissionRead.php +36 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/ReadersRetriever.php +42 โˆ’0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/UserPermissionsBuilder.php +17 โˆ’7 Go to diff View file
M plugins/mediawiki_standalone/include/REST/v1/MediawikiStandaloneProjectResource.php +4 โˆ’1 Go to diff View file
M plugins/mediawiki_standalone/include/Service/MediawikiStandaloneService.php +42 โˆ’1 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +72 โˆ’0 Go to diff View file
M plugins/mediawiki_standalone/site-content/fr_FR/LC_MESSAGES/tuleap-mediawiki_standalone.po +20 โˆ’2 Go to diff View file
M plugins/mediawiki_standalone/site-content/pt_BR/LC_MESSAGES/tuleap-mediawiki_standalone.po +18 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/templates/project-admin-permissions.mustache +41 โˆ’0 Go to diff View file
M plugins/mediawiki_standalone/tests/rest/v1/MediawikiStandaloneProjectResourceTest.php +5 โˆ’5 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsControllerTest.php +131 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/Admin/RejectNonMediawikiAdministratorMiddlewareTest.php +140 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/IBuildUserPermissionsStub.php +56 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/ISearchByProjectAndPermissionStub.php +51 โˆ’0 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/ReadersRetrieverTest.php +49 โˆ’0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/UserPermissionsBuilderTest.php +112 โˆ’60 Go to diff View file
M src/common/User/User.class.php +5 โˆ’0 Go to diff View file
M tests/lib/Builders/UserTestBuilder.php +17 โˆ’0 Go to diff View file
R plugins/baseline/tests/unit/Support/NoopSapiEmitter.php Go to diff View file