From 22d2e359b806513408f2d1d4845c54fa392bfae1 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 23 Oct 2024 13:32:38 +0300 Subject: [PATCH] Fix pdf-forms commenting mode (disable filling forms) --- apps/documenteditor/main/app/controller/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index f8db0bfe81..5b9bf8bb7c 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1696,7 +1696,7 @@ define([ this.appOptions.canSaveToFile = this.appOptions.isEdit || this.appOptions.isRestrictedEdit; this.appOptions.showSaveButton = this.appOptions.isEdit || !this.appOptions.isRestrictedEdit && this.appOptions.isPDFForm; // save to file or save to file copy (for pdf-form viewer) - if (this.appOptions.isPDFForm && !this.appOptions.isEdit) { + if (this.appOptions.isPDFForm && !this.appOptions.isEdit && !this.appOptions.isRestrictedEdit) { if (!this.appOptions.isRestrictedEdit && !this.appOptions.canEdit) this.appOptions.canRequestEditRights = false; // if open form in viewer - check permissions.edit option this.appOptions.canFillForms = this.appOptions.isRestrictedEdit = true; // can fill forms in viewer!