{{ rolePermissionService.name }}

@if (rolePermissionService.description) { {{ rolePermissionService.description }} }
@if (!isRoleEnable(rolePermissionService.disabled)) { } @if (isRoleEnable(rolePermissionService.disabled)) { }

{{ 'labels.buttons.Permissions' | translate }}: {{ formatName(previousGrouping) }}

@if (!isDisabled) {
}
@for (group of roleGroups; track group.name) {
{{ group.name }} {{ getGroupPermCount(group) }} @if (!isDisabled) { }
@if (group.expanded) {
@for (cat of group.categories; track cat) {
{{ formatName(cat) }} @if (!isDisabled) { } {{ getCatPermCount(cat) }}
}
}
}
@if (permissionSubGroups.length > 0) { @for (subGroup of permissionSubGroups; track subGroup.entity) {
{{ getEntityDisplayName(subGroup.entity) }} {{ getSubGroupCount(subGroup) }} @if (!isDisabled) { }
@if (subGroup.expanded) {
Maker @if (!isDisabled && subGroup.makerPerms.length > 0) { }
@for (permission of subGroup.makerPerms; track permission) {
{{ permissionName(permission.code) }}
} @if (subGroup.makerPerms.length === 0) { — }
Checker @if (!isDisabled && subGroup.checkerPerms.length > 0) { }
@for (permission of subGroup.checkerPerms; track permission) {
{{ permissionName(permission.code) }}
} @if (subGroup.checkerPerms.length === 0) { — }
}
} } @else {
Maker @if (!isDisabled && flatMakerPerms.length > 0) { }
@for (permission of flatMakerPerms; track permission) {
{{ permissionName(permission.code) }}
}
Checker @if (!isDisabled && flatCheckerPerms.length > 0) { }
@for (permission of flatCheckerPerms; track permission) {
{{ permissionName(permission.code) }}
} @if (flatCheckerPerms.length === 0) { No checker permissions }
}
@if (!isDisabled) { }