From f2ca5494219de7f2cb9f00ea7ed4ee80d2f37a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 24 Aug 2020 19:50:21 +0200 Subject: Hide insertgraphicremote if no user is present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/document.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.3