From 43928d38af2d4129a25676e4e09551dd58935d66 Mon Sep 17 00:00:00 2001 From: Mattia Buccarella Date: Thu, 12 Oct 2023 12:46:57 +0200 Subject: [PATCH] RBAC: Allow the basic role None as option of the org role selector (#76335) --- public/app/features/admin/OrgRolePicker.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/features/admin/OrgRolePicker.tsx b/public/app/features/admin/OrgRolePicker.tsx index 65f55db0f1f..bfc0752bdd1 100644 --- a/public/app/features/admin/OrgRolePicker.tsx +++ b/public/app/features/admin/OrgRolePicker.tsx @@ -13,8 +13,7 @@ interface Props { width?: number | 'auto'; } -const basicRoles = Object.values(OrgRole).filter((r) => r !== OrgRole.None); -const options = basicRoles.map((r) => ({ label: r, value: r })); +const options = Object.keys(OrgRole).map((key) => ({ label: key, value: key })); export function OrgRolePicker({ value, onChange, 'aria-label': ariaLabel, inputId, autoFocus, ...restProps }: Props) { return (