Skip to content

Commit 1e80b01

Browse files
committed
fix(NewUserDialog): update group selection to prevent admin group from being assigned as subadmin
Signed-off-by: Arsalan Ul Haq Sohni <arsalan-ul-haq.sohni@strato.de> [skip ci]
1 parent ba46060 commit 1e80b01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/settings/src/components/Users/NewUserDialog.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ export default {
218218
return groups.filter(group => group.id !== '__nc_internal_recent' && group.id !== 'disabled')
219219
},
220220
221+
availableSubAdminGroups() {
222+
return this.availableGroups.filter((group) => group.id !== 'admin')
223+
},
224+
221225
languages() {
222226
return [
223227
{

0 commit comments

Comments
 (0)