Unifying things for document protection as implemented for sheet protection in https://gerrit.libreoffice.org/c/core/+/107041
(In reply to An-Kh from comment #0) > Unifying things for document protection as implemented for sheet protection > in > > https://gerrit.libreoffice.org/c/core/+/107041 It is implemented under ScDocFunc::ProtectSheet The proposal is to create a similar function for document protection (something like ScDocFunc::ProtectDocument)
Please review this patch https://gerrit.libreoffice.org/c/core/+/108541
Anshu committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5c97d7f490f82152ff42bf61f5a4b270f0141ba2 tdf#139339 : Unify protect/unprotect cases for document protection It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.