diff --git a/src/frontend/plugins/onlyoffice-api-js/onlyoffice-viewer.component.ts b/src/frontend/plugins/onlyoffice-api-js/onlyoffice-viewer.component.ts index d25621df311eab940224584bec79e85de075c6df..9db943a72ad6c50d078f0ec1cbee87a749d0ad85 100644 --- a/src/frontend/plugins/onlyoffice-api-js/onlyoffice-viewer.component.ts +++ b/src/frontend/plugins/onlyoffice-api-js/onlyoffice-viewer.component.ts @@ -293,10 +293,12 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD title: 'Edition', url: `${this.appUrl}${this.params.docUrl}?filename=${this.tmpFilename}`, permissions: { - comment: false, + comment: true, download: true, edit: this.editMode, print: true, + deleteCommentAuthorOnly: true, + editCommentAuthorOnly: true, review: false } }, @@ -307,7 +309,7 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD mode: 'edit', customization: { chat: false, - comments: false, + comments: true, compactToolbar: false, feedback: false, forcesave: false, @@ -317,8 +319,8 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD zoom: -2, }, user: { - id: '1', - name: ' ' + id: this.headerService.user.id.toString(), + name: `${this.headerService.user.firstname} ${this.headerService.user.lastname}` }, }, };