Disallow deleting "Sensitive data" user group

This commit is contained in:
Rasmus John Pedersen
2019-09-26 18:39:54 +02:00
committed by Bjarke Berg
parent 6b318207c7
commit 640f042acf
6 changed files with 31 additions and 22 deletions

View File

@@ -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);

View File

@@ -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>