Revert "RBAC: Allow the basic role None as option of the org role #76335 (#77033)

Revert "RBAC: Allow the basic role None as option of the org role selector (#76335)"

This reverts commit 43928d38af.
This commit is contained in:
Eric Leijonmarck
2023-10-24 13:02:17 +01:00
committed by GitHub
parent 1cb1d174fd
commit 8914849733

View File

@@ -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 (