mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 05:46:28 +08:00
RBAC: hide the empty basic role from the org role picker (#72276)
hide the empty basic role from the org role picker
This commit is contained in:
@ -13,7 +13,8 @@ interface Props {
|
||||
width?: number | 'auto';
|
||||
}
|
||||
|
||||
const options = Object.keys(OrgRole).map((key) => ({ label: key, value: key }));
|
||||
const basicRoles = Object.values(OrgRole).filter((r) => r !== OrgRole.None);
|
||||
const options = basicRoles.map((r) => ({ label: r, value: r }));
|
||||
|
||||
export function OrgRolePicker({ value, onChange, 'aria-label': ariaLabel, inputId, autoFocus, ...restProps }: Props) {
|
||||
return (
|
||||
|
Reference in New Issue
Block a user