From 84403a3f3fa31bad6e73365ef4be704f42dc16ef Mon Sep 17 00:00:00 2001 From: davidcanonieto Date: Mon, 18 Feb 2019 09:37:39 +0000 Subject: [PATCH] [ADF-4097] Fix add comment section --- demo-shell/src/app/components/file-view/file-view.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-shell/src/app/components/file-view/file-view.component.ts b/demo-shell/src/app/components/file-view/file-view.component.ts index 86ad27b4c2..a477306019 100644 --- a/demo-shell/src/app/components/file-view/file-view.component.ts +++ b/demo-shell/src/app/components/file-view/file-view.component.ts @@ -68,7 +68,7 @@ export class FileViewComponent implements OnInit { this.nodeApiService.getNode(id).subscribe( (node) => { if (node && node.isFile) { - this.isCommentDisabled = this.contentServices.hasPermissions(node, PermissionsEnum.CONSUMER); + this.isCommentDisabled = !this.contentServices.hasPermissions(node, PermissionsEnum.CONSUMER); this.nodeId = id; return; }