mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +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;
|
||||
|
||||
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;
|
||||
|
Reference in New Issue
Block a user