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>
pull/57293/head
Arsalan Ul Haq Sohni 2025-12-23 11:03:55 +07:00 committed by Maksim Sukharev
parent d701b5bcee
commit 0285e1c8bf
1 changed files with 5 additions and 1 deletions

@ -87,7 +87,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"
:close-on-select="false"
:multiple="true"
label="name"
@ -218,6 +218,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 [
{