mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
Upgrade TS
This commit is contained in:
parent
5809474001
commit
a5764a98ab
@ -48,7 +48,7 @@ export class InheritPermissionDirective {
|
||||
onInheritPermissionClicked() {
|
||||
this.nodeService.getNode(this.nodeId).subscribe((node: Node) => {
|
||||
if (this.contentService.hasAllowableOperations(node, AllowableOperationsEnum.UPDATEPERMISSIONS)) {
|
||||
const nodeBody = { permissions: { isInheritanceEnabled: !node?.['permissions']?.['isInheritanceEnabled'] ?? false } };
|
||||
const nodeBody = { permissions: { isInheritanceEnabled: !node?.['permissions']?.['isInheritanceEnabled'] || false } };
|
||||
this.nodeService.updateNode(this.nodeId, nodeBody, { include: ['permissions'] }).subscribe(
|
||||
(nodeUpdated: Node) => {
|
||||
this.updated.emit(nodeUpdated);
|
||||
|
Loading…
x
Reference in New Issue
Block a user