Disallow deleting "Sensitive data" user group
This commit is contained in:
committed by
Bjarke Berg
parent
6b318207c7
commit
640f042acf
@@ -81,7 +81,7 @@
|
||||
}
|
||||
// Disallow selection of the admin/translators group, the checkbox is not visible in the UI, but clicking(and thus selecting) is still possible.
|
||||
// Currently selection can only be used for deleting, and the Controller will also disallow deleting the admin group.
|
||||
if (userGroup.alias === "admin" || userGroup.alias === "translator")
|
||||
if (userGroup.isSystemUserGroup)
|
||||
return;
|
||||
|
||||
listViewHelper.selectHandler(userGroup, $index, vm.userGroups, vm.selection, $event);
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<div class="umb-table-row"
|
||||
ng-repeat="group in vm.filteredUserGroups track by $index"
|
||||
ng-click="vm.selectUserGroup(group, $index, $event)"
|
||||
ng-class="{'-selected': group.selected, '-selectable': group.hasAccess && group.alias !== 'admin' && group.alias !== 'translator'}">
|
||||
ng-class="{'-selected': group.selected, '-selectable': group.hasAccess && !group.isSystemUserGroup}">
|
||||
|
||||
<div class="umb-table-cell">
|
||||
<i ng-if="group.icon" class="umb-table-body__icon umb-table-body__fileicon {{ group.icon }}"></i>
|
||||
|
||||
Reference in New Issue
Block a user