Skip to content

Commit

Permalink
Merge pull request 'Fix pdf-forms commenting mode (disable filling fo…
Browse files Browse the repository at this point in the history
…rms)' (#99) from fix/pdf-comments into hotfix/v8.2.1
  • Loading branch information
Julia Radzhabova committed Oct 24, 2024
2 parents 20b9288 + 22d2e35 commit ff26b4c
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 ff26b4c

Please sign in to comment.