mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2551] removed wrong check before checking permissions (#3163)
* [ADF-2551] removed wrong check before checking permissions * [ADF-2551] fixed disablewithnopermission value for content actions * [ADF-2551] fixed tests titles * [ADF-2551] removed disabled tslint rule * [ADF-2551] removed duplicated wrong tests
This commit is contained in:
@@ -441,7 +441,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
||||
}
|
||||
|
||||
disableActionsWithNoPermissions(node: MinimalNodeEntity, action: ContentActionModel) {
|
||||
if (action.permission && node.entry.allowableOperations && !this.contentService.hasPermission(node.entry, action.permission)) {
|
||||
if (action.permission && action.disableWithNoPermission && !this.contentService.hasPermission(node.entry, action.permission)) {
|
||||
action.disabled = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user