mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -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,
|
value: ROLE.Member,
|
||||||
label: this.$locale.baseText('auth.roles.member'),
|
label: this.$locale.baseText('auth.roles.member'),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
value: ROLE.Admin,
|
|
||||||
label: this.$locale.baseText('auth.roles.admin'),
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
capitalize: true,
|
capitalize: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -52,23 +52,7 @@
|
||||||
@copyPasswordResetLink="onCopyPasswordResetLink"
|
@copyPasswordResetLink="onCopyPasswordResetLink"
|
||||||
@allowSSOManualLogin="onAllowSSOManualLogin"
|
@allowSSOManualLogin="onAllowSSOManualLogin"
|
||||||
@disallowSSOManualLogin="onDisallowSSOManualLogin"
|
@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>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue