stable

Clone or download

Read-only

Put infrastructure in place to restrict access to a OO document server to some projects

All what is needed in the backend side is in place to make possible to restrict a OO document server to some specific projects. No changes are made yet in the web UI so there is no user facing changes yet. To test you can set explicitly the column `is_project_restricted` in the table `plugin_onlyoffice_document_server` to true and add some restrictions in the table `plugin_onlyoffice_document_server_project_restriction`. Part of story #29981: restrict an OnlyOffice server to some projects only Change-Id: Id62c7ae7e4f86c4391b1e1fc385b345226d9dcea

Modified Files

Name
M plugins/onlyoffice/db/install.sql +10 −1 Go to diff View file
A plugins/onlyoffice/db/mysql/2022/202212201015_create_server_project_restriction_table.php +48 −0 Go to diff View file
M plugins/onlyoffice/db/uninstall.sql +1 −0 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeAvailabilityChecker.php +7 −1 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/DocumentServer.php +36 −2 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/DocumentServerDao.php +76 −9 Go to diff View file
A plugins/onlyoffice/include/DocumentServer/DocumentServerProjectRestrictionDAO.php +33 −0 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +10 −0 Go to diff View file
M plugins/onlyoffice/tests/integration/DocumentServer/DocumentServerDaoTest.php +12 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAdminSettingsControllerTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAdminSettingsPresenterBuilderTest.php +2 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAvailabilityCheckerTest.php +6 −8 Go to diff View file
A plugins/onlyoffice/tests/unit/DocumentServer/DocumentServerTest.php +54 −0 Go to diff View file
M plugins/onlyoffice/tests/unit/Download/OnlyOfficeDownloadDocumentTokenGeneratorDBStoreTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/DocmanFileLastVersionToOnlyOfficeDocumentTransformerTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/Editor/OnlyOfficeDocumentConfigProviderTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/Editor/OnlyOfficeGlobalEditorJWTokenProviderTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/ProvideOnlyOfficeDocumentStub.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/TransformDocmanFileLastVersionToOnlyOfficeDocumentStub.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/DocumentServerForSaveDocumentTokenRetrieverTest.php +10 −10 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeCallbackResponseJWTParserTest.php +2 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveCallbackURLGeneratorTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenGeneratorDBStoreTest.php +2 −2 Go to diff View file