Skip to content

Fix DocumentHasPassword check

Nicolas Fella requested to merge work/nico/documentlocked into master

A document can be encrypted without requiring a password to open/sign it.

Currently we assume we need a password to sign it for such documents, but that's not correct.

Instead of checking whether the document is encrypted remember whether we needed a password for opening.

BUG: 474888

Test plan:

Sign the document from the bugreport: No password is needed when signing

Sign a document that needs password to open: Still need the password for signing

Edited by Nicolas Fella

Merge request reports