Skip to content

Commit

Permalink
Get permissions after refresh file
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Jul 2, 2024
1 parent 8ea2e6f commit b576a4c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/documenteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1477,12 +1477,16 @@ define([
buttons: [],
closable: false
});
if (this._isDocReady) { // receive after refresh file
this.disableEditing(true);
Common.NotificationCenter.trigger('api:disconnect');
}
return;
}
if (Asc.c_oLicenseResult.ExpiredLimited === licType)
this._state.licenseType = licType;

if ( this.onServerVersion(params.asc_getBuildVersion()) || !this.onLanguageLoaded()) return;
if ( this.onServerVersion(params.asc_getBuildVersion()) || !this.onLanguageLoaded() || this._isDocReady) return;

var isPDFViewer = /^(?:(pdf|djvu|xps|oxps))$/.test(this.document.fileType);

Expand Down Expand Up @@ -2321,6 +2325,10 @@ define([
})
}
});
if (this._isDocReady) { // receive after refresh file
this.disableEditing(true);
Common.NotificationCenter.trigger('api:disconnect');
}
return true;
}
return false;
Expand Down

0 comments on commit b576a4c

Please sign in to comment.