[ADF-2601] added permission check to info editing button (#3177)

* [ADF-2601] added permission check to info editing button

* [ADF-2601] added test for node permission check on the content metadata card

* [ADF-2601] used enum instead of string for test
This commit is contained in:
Vito
2018-04-17 20:34:14 +01:00
committed by Eugenio Romano
parent ee9393caf0
commit fabb6f4450
4 changed files with 33 additions and 9 deletions

View File

@@ -374,7 +374,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
toggleSidebar() {
this.showSidebar = !this.showSidebar;
if (this.showSidebar && this.fileNodeId) {
this.apiService.getInstance().nodes.getNodeInfo(this.fileNodeId)
this.apiService.getInstance().nodes.getNodeInfo(this.fileNodeId, {include: ['allowableOperations']})
.then((data: MinimalNodeEntryEntity) => {
this.sidebarTemplateContext.node = data;
});