From 69dd3a60ab24d4ac91cfe9bba5eaea8e4f79b94f Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 12 Oct 2017 14:32:12 +0200 Subject: [PATCH] Hide template and fileupload buttons for anonymous users --- www/common/sframe-common-interface.js | 1 + www/filepicker/inner.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/sframe-common-interface.js b/www/common/sframe-common-interface.js index 52d95b040..97fcc9fb6 100644 --- a/www/common/sframe-common-interface.js +++ b/www/common/sframe-common-interface.js @@ -98,6 +98,7 @@ define([ break; case 'template': if (!AppConfig.enableTemplates) { return; } + if (!common.isLoggedIn()) { return; } button = $('