{{ 'MENU.SETTINGS' | translate }}/ {{ 'ORGANIZATIONS_PAGE.EDIT.ROLES_PERMISSIONS' | translate }}

@for (role of roles$ | async; track role) { {{ role.name }} }
@if (isWantToCreate) {
{{ 'BUTTONS.CREATE_NEW_ROLE' | translate : { name: input.value } }}
} @if (role && role.isSystem === false && !isWantToCreate) {
{{ 'BUTTONS.DELETE_EXISTING_ROLE' | translate : { name: role.name } }}
}
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.GROUPS.GENERAL' | translate }} @if (getEnabledCount('GENERAL'); as count) { {{ 'ORGANIZATIONS_PAGE.PERMISSIONS.ENABLED_COUNT' | translate: count }} } @for (section of generalSections; track section.key) {
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.SECTIONS.' + section.key | translate }}
@for (permission of section.permissions; track permission) {
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.' + permission | translate }} @if (permissionTexts.get(permission)?.description; as description) { {{ description }} }
}
}
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.GROUPS.ADMINISTRATION' | translate }} @if (getEnabledCount('ADMINISTRATION'); as count) { {{ 'ORGANIZATIONS_PAGE.PERMISSIONS.ENABLED_COUNT' | translate: count }} } @for (section of adminSections; track section.key) {
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.SECTIONS.' + section.key | translate }}
@for (permission of section.permissions; track permission) {
{{ 'ORGANIZATIONS_PAGE.PERMISSIONS.' + permission | translate }} @if (permissionTexts.get(permission)?.description; as description) { {{ description }} }
}
}