permission (#476)

This commit is contained in:
Cilibiu Bogdan
2018-07-01 09:41:47 +03:00
committed by Denys Vuika
parent 9f2d7e3edf
commit 82f64fcad0

View File

@@ -41,13 +41,8 @@ export class InfoDrawerComponent implements OnChanges {
displayNode: MinimalNodeEntryEntity;
canUpdateNode(): boolean {
if (this.node) {
if ((<any>this.node.entry).nodeId) {
return this.permission.check(this.node.entry, ['update'], {
target: 'allowableOperationsOnTarget'
});
}
return this.permission.check(this.node.entry, ['update']);
if (this.displayNode) {
return this.permission.check(this.displayNode, ['update']);
}
return false;