Fix password change with OnlyOffice documents #1881 #1882

This commit is contained in:
yflory 2025-05-09 15:31:59 +02:00
parent 5a604ecf52
commit addb9254a4

View File

@ -908,7 +908,7 @@ define([
// We should know it because the pad is stored, but it's better to check...
//if (!data.noEditPassword && !opts.noEditPassword && owned && data.href) {
if (!data.noEditPassword && !opts.noEditPassword && owned && data.href && parsed.type !== "form") { // TODO password change in forms block responses (validation & decryption)
var isOO = parsed.type === 'sheet';
var isOO = ['sheet', 'doc', 'presentation'].includes(parsed.type);
var isFile = parsed.hashData.type === 'file';
var isSharedFolder = parsed.type === 'drive';