Skip to content

Commit

Permalink
Fix pdf-forms commenting mode (disable filling forms)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Oct 23, 2024
1 parent a228c58 commit 22d2e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 22d2e35

Please sign in to comment.