diff options
-rw-r--r-- | js/editor.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/editor.js b/js/editor.js index b08cbe1..b4d3d49 100644 --- a/js/editor.js +++ b/js/editor.js @@ -137,7 +137,8 @@ "onDocumentStateChange": setPageTitle, }; - if (OCA.Onlyoffice.inframe || OC.currentUser) { + if (OCA.Onlyoffice.inframe && !shareToken + || OC.currentUser) { config.events.onRequestSaveAs = OCA.Onlyoffice.onRequestSaveAs; config.events.onRequestInsertImage = OCA.Onlyoffice.onRequestInsertImage; config.events.onRequestMailMergeRecipients = OCA.Onlyoffice.onRequestMailMergeRecipients; |