diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index d47c44b56..6a8d3176f 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3394,7 +3394,7 @@ define([ UIElements.displayCrowdfunding = function (common, force) { if (crowdfundingState) { return; } var priv = common.getMetadataMgr().getPrivateData(); - + if (priv.app === 'form' && !priv.canEdit && !priv.form_auditorKey) {return; } var todo = function () { crowdfundingState = true; @@ -3464,7 +3464,7 @@ define([ // This pad will be deleted automatically, it shouldn't be stored if (priv.burnAfterReading) { return; } - + if (priv.app === 'form' && !priv.canEdit && !priv.form_auditorKey) {return; } var typeMsg = priv.pathname.indexOf('/file/') !== -1 ? Messages.autostore_file : priv.pathname.indexOf('/drive/') !== -1 ? Messages.autostore_sf : Messages.autostore_pad; diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 69e857171..5d24a1746 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -751,7 +751,9 @@ define([ // Ctrl || Meta (mac) if (e.ctrlKey || (navigator.platform === "MacIntel" && e.metaKey)) { // Ctrl+E: New pad modal + var priv = ctx.metadataMgr.getPrivateData(); if (e.which === 69 && isApp) { + if (priv.app === 'form' && !priv.canEdit && !priv.form_auditorKey) {return; } e.preventDefault(); return void funcs.createNewPadModal(); }