stable

Clone or download

Read-only

feat: Save allowed/revoked projects

Now sitadmin is able to allow/revoke projects to use a given document server. If a project is allowed for another server, then it will be removed before being added to the new one. Siteadmin is warned about this during project selection. Part of story #29981: restrict an OnlyOffice server to some projects only Change-Id: I39797bbb4115dc34caa62292269647d2075f1dbc

Modified Files

Name
A plugins/onlyoffice/include/Administration/OnlyOfficeRestrictAdminSettingsController.php +71 −0 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeServerPresenter.php +4 −2 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/DocumentServerDao.php +31 −4 Go to diff View file
A plugins/onlyoffice/include/DocumentServer/IRestrictDocumentServer.php +31 −0 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +13 −0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/po/fr_FR.po +13 −0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowedProjectsTable.test.ts +132 −6 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowedProjectsTable.vue +57 −3 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/RestrictServerModal.test.ts +88 −0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/RestrictServerModal.vue +69 −31 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/type.ts +1 −0 Go to diff View file
M plugins/onlyoffice/site-content/fr_FR/LC_MESSAGES/tuleap-onlyoffice.po +3 −0 Go to diff View file
M plugins/onlyoffice/site-content/pr_BR/LC_MESSAGES/tuleap-onlyoffice.po +3 −0 Go to diff View file
M plugins/onlyoffice/tests/integration/DocumentServer/DocumentServerDaoTest.php +58 −12 Go to diff View file
A plugins/onlyoffice/tests/unit/Administration/OnlyOfficeRestrictAdminSettingsControllerTest.php +97 −0 Go to diff View file
A plugins/onlyoffice/tests/unit/Stubs/IRestrictDocumentServerStub.php +49 −0 Go to diff View file
M tests/psalm/psalm.xml +1 −0 Go to diff View file