Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/editor.js3
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;