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
2 changed files with 1 additions and 21 deletions

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>