Allow assign realm roles with query-users access. (#22097)

Fixes #22079
This commit is contained in:
Stan Silvert 2023-08-03 15:34:57 -04:00 committed by GitHub
parent 0dae40fc78
commit fa5ddf97ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ export const AddRoleMappingModal = ({
}: AddRoleMappingModalProps) => {
const { t } = useTranslation(type);
const { hasAccess } = useAccess();
const canViewRealmRoles = hasAccess("view-realm");
const canViewRealmRoles = hasAccess("view-realm") || hasAccess("query-users");
const [searchToggle, setSearchToggle] = useState(false);