mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
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:
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 [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue