Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(NewUserDialog): update group selection to prevent admin group fro…
…m being assigned as subadmin

Signed-off-by: Arsalan Ul Haq Sohni <[email protected]>
  • Loading branch information
Arsalanulhaq authored and Antreesy committed Jan 7, 2026
commit 0285e1c8bfa8ea461edee7ad697001ed37266e7c
6 changes: 5 additions & 1 deletion apps/settings/src/components/Users/NewUserDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 [
{
Expand Down
Loading