diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-08-24 20:50:21 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-08-24 20:50:21 +0300 |
commit | f2ca5494219de7f2cb9f00ea7ed4ee80d2f37a50 (patch) | |
tree | 929ede9de0cc6cac5f28f656ff501258f1338212 | |
parent | f7145279cc315a4452c385b41e61fbcf18022b59 (diff) |
Hide insertgraphicremote if no user is presentv3.7.3-frontendapi-6
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | src/document.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js index 6033943d..e4eed520 100644 --- a/src/document.js +++ b/src/document.js @@ -266,6 +266,10 @@ const documentsMain = { PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Menu_Item', { id: 'shareas' }) } + if (Config.get('userId') === null) { + PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Menu_Item', { id: 'insertgraphicremote' }) + } + break case 'Failed': // Loading failed but editor shows the error |