fix(editor): Remove ability for users to select admin role in the UI (no-changelog) (#7850)

This commit is contained in:
Csaba Tuncsik 2023-11-28 15:11:02 +01:00 committed by GitHub
parent 2356fb0f0c
commit e87e928144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 21 deletions

View file

@ -132,10 +132,6 @@ export default defineComponent({
value: ROLE.Member,
label: this.$locale.baseText('auth.roles.member'),
},
{
value: ROLE.Admin,
label: this.$locale.baseText('auth.roles.admin'),
},
],
capitalize: true,
},

View file

@ -52,23 +52,7 @@
@copyPasswordResetLink="onCopyPasswordResetLink"
@allowSSOManualLogin="onAllowSSOManualLogin"
@disallowSSOManualLogin="onDisallowSSOManualLogin"
>
<template #actions="{ user }">
<n8n-select
:modelValue="user.globalRole.name"
@update:modelValue="($event: IRole) => onRoleChange(user, $event)"
:disabled="!canUpdateRole"
data-test-id="user-role-select"
>
<n8n-option
v-for="role in userRoles"
:key="role.value"
:value="role.value"
:label="role.label"
/>
</n8n-select>
</template>
</n8n-users-list>
</div>
</div>
</template>