diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 5383206e5..036d63bc8 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -552,6 +552,8 @@ define([ button.click(function () { $input.click(); }); break; case 'importtemplate': + if (!AppConfig.enableTemplates) { return; } + if (!common.isLoggedIn()) { return; } button = $('