mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-2451] Reviewed component docs and fixed package.json issues * [ADF-2451] Fixed permission list brief desc and rebuilt indexes * [ADF-2451] Fixed incorrect filename for inherited button directive docs
32 lines
961 B
Markdown
32 lines
961 B
Markdown
---
|
|
Added: v2.3.0
|
|
Status: Active
|
|
---
|
|
# Inherit Permission directive
|
|
|
|
Update the current node by adding/removing the inherited permissions.
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<button mat-raised-button
|
|
color="primary"
|
|
adf-inherit-permission [nodeId]="nodeId"
|
|
(updated)="onUpdatedPermissions($node)">PERMISSION</button>
|
|
```
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| nodeId | `string` | | nodeId where to add/remove inherited permissions |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| updated | `EventEmitter<MinimalNodeEntryEntity>` | Emitted when the node is updated. |
|
|
|
|
## Details
|
|
This directive switches on/off the inheritance on the permission based on what is set on the node entity.
|
|
So if the node has inherited permissions, this will remove them viceversa if the node does not have the inherited permission this will add them. |