mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 09:47:17 +08:00
Fix pdf-forms commenting mode (disable filling forms)
This commit is contained in:
@ -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!
|
||||
|
||||
Reference in New Issue
Block a user