mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-07 17:48:27 +00:00
permission (#476)
This commit is contained in:
committed by
Denys Vuika
parent
9f2d7e3edf
commit
82f64fcad0
@@ -41,13 +41,8 @@ export class InfoDrawerComponent implements OnChanges {
|
|||||||
displayNode: MinimalNodeEntryEntity;
|
displayNode: MinimalNodeEntryEntity;
|
||||||
|
|
||||||
canUpdateNode(): boolean {
|
canUpdateNode(): boolean {
|
||||||
if (this.node) {
|
if (this.displayNode) {
|
||||||
if ((<any>this.node.entry).nodeId) {
|
return this.permission.check(this.displayNode, ['update']);
|
||||||
return this.permission.check(this.node.entry, ['update'], {
|
|
||||||
target: 'allowableOperationsOnTarget'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return this.permission.check(this.node.entry, ['update']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user