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>
This commit is contained in:
Arsalan Ul Haq Sohni 2025-12-23 11:03:55 +01:00 committed by Arsalan Ul Haq
parent 4283f4790b
commit c81422ed37

View file

@ -96,7 +96,7 @@
:input-label="t('settings', 'Admin of the following groups')"
:placeholder="t('settings', 'Set account as admin for …')"
:disabled="loading.groups || loading.all"
:options="availableGroups"
:options="availableSubAdminGroups"
keep-open
:multiple="true"
label="name"
@ -231,6 +231,10 @@ export default {
return groups.filter((group) => group.id !== '__nc_internal_recent' && group.id !== 'disabled')
},
availableSubAdminGroups() {
return this.availableGroups.filter((group) => group.id !== 'admin')
},
languages() {
return [
{