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
path: root/js
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2020-01-23 11:44:07 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2020-01-23 11:44:07 +0300
commit06163173e1f4f52ff7d6ed73332c3a45c74571b2 (patch)
treebd8dcfe80f4259d536be5e8523dcb98af7d05936 /js
parent33475989c72ed4953fb2e80270fd60da20d60aa7 (diff)
hide file selector for public
Diffstat (limited to 'js')
-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;