From fa5ddf97ac02c0acbbc2feed804e73020b52d782 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Thu, 3 Aug 2023 15:34:57 -0400 Subject: [PATCH] Allow assign realm roles with query-users access. (#22097) Fixes #22079 --- .../src/components/role-mapping/AddRoleMappingModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx b/js/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx index d90ee4f7a1..b39cda7f4b 100644 --- a/js/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx +++ b/js/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx @@ -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);