stable

Clone or download

Read-only

feat: Switch onlyoffice plugin to project scope

Administrator may not want to deploy ONLYOFFICE integration to the whole platform. To reduce costs or for progressive deployment, we should be able to restrict access to the plugin. Restriction is managed in plugins administration. If a project is not allowed to access to ONLYOFFICE => Documents URLsΒ are not overridden => Direct access to the OO document is rejected Part of story #27555: display Office documents stored in the Document plugin Change-Id: I18b28192ec9d6f8a9248c33b50e7402c0439565c

Modified Files

Name
A plugins/onlyoffice/include/Administration/CheckOnlyOfficeIsAvailable.php +28 βˆ’0 Go to diff View file
A plugins/onlyoffice/include/Administration/OnlyOfficeAvailabilityChecker.php +64 βˆ’0 Go to diff View file
A plugins/onlyoffice/include/Open/DocmanFileLastVersionToOnlyOfficeDocumentTransformer.php +72 βˆ’0 Go to diff View file
M plugins/onlyoffice/include/Open/OnlyOfficeDocumentProvider.php +2 βˆ’20 Go to diff View file
A plugins/onlyoffice/include/Open/TransformDocmanFileLastVersionToOnlyOfficeDocument.php +35 βˆ’0 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +24 βˆ’16 Go to diff View file
A plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAvailabilityCheckerTest.php +148 βˆ’0 Go to diff View file
D plugins/onlyoffice/tests/unit/OnlyOfficePluginTest.php +0 βˆ’90 Go to diff View file
A plugins/onlyoffice/tests/unit/Open/DocmanFileLastVersionToOnlyOfficeDocumentTransformerTest.php +110 βˆ’0 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/OnlyOfficeDocumentProviderTest.php +20 βˆ’17 Go to diff View file
A plugins/onlyoffice/tests/unit/Open/TransformDocmanFileLastVersionToOnlyOfficeDocumentStub.php +53 βˆ’0 Go to diff View file