mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(editor): Remove ability for users to select admin role in the UI (no-changelog) (#7850)
This commit is contained in:
parent
2356fb0f0c
commit
e87e928144
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue