From fcf1a011ae804644b9651720351a3421707d9935 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 17 Jan 2022 16:31:55 +0100 Subject: [PATCH] Disable password change in forms --- www/common/inner/access.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/inner/access.js b/www/common/inner/access.js index 0ba857a0a..6cbc8633f 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -870,7 +870,8 @@ define([ // In the properties, we should have the edit href if we know it. // We should know it because the pad is stored, but it's better to check... - if (!data.noEditPassword && !opts.noEditPassword && owned && data.href) { // FIXME SHEET fix password change for sheets + //if (!data.noEditPassword && !opts.noEditPassword && owned && data.href) { + if (!data.noEditPassword && !opts.noEditPassword && owned && data.href && parsed.type !== "form") { // XXX password change in forms block responses (validation & decryption) var isOO = parsed.type === 'sheet'; var isFile = parsed.hashData.type === 'file'; var isSharedFolder = parsed.type === 'drive';