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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/document.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js
index dddcadac..ad7ee856 100644
--- a/src/document.js
+++ b/src/document.js
@@ -262,6 +262,10 @@ const documentsMain = {
PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Button', { id: 'fullscreen' })
PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Menu_Item', { id: 'fullscreen' })
}
+ if (!(Config.get('permissions') & OC.PERMISSION_SHARE)) {
+ PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Menu_Item', { id: 'shareas' })
+ }
+
break
case 'Failed':
// Loading failed but editor shows the error