diff --git a/js/apps/admin-ui/src/groups/GroupTable.tsx b/js/apps/admin-ui/src/groups/GroupTable.tsx index c2f720470738..5beb69324d51 100644 --- a/js/apps/admin-ui/src/groups/GroupTable.tsx +++ b/js/apps/admin-ui/src/groups/GroupTable.tsx @@ -22,13 +22,9 @@ import { adminClient } from "../admin-client"; type GroupTableProps = { refresh: () => void; - canViewDetails: boolean; }; -export const GroupTable = ({ - refresh: viewRefresh, - canViewDetails, -}: GroupTableProps) => { +export const GroupTable = ({ refresh: viewRefresh }: GroupTableProps) => { const { t } = useTranslation(); const [selectedRows, setSelectedRows] = useState([]); @@ -192,7 +188,7 @@ export const GroupTable = ({ name: "name", displayKey: "groupName", cellRenderer: (group) => - canViewDetails ? ( + group.access?.view ? ( {group.name} diff --git a/js/apps/admin-ui/src/groups/GroupsSection.tsx b/js/apps/admin-ui/src/groups/GroupsSection.tsx index ec1e74dcd93e..8631ced048ae 100644 --- a/js/apps/admin-ui/src/groups/GroupsSection.tsx +++ b/js/apps/admin-ui/src/groups/GroupsSection.tsx @@ -197,10 +197,7 @@ export default function GroupsSection() { eventKey={0} title={{t("childGroups")}} > - + {canViewMembers && ( )} - {subGroups.length === 0 && ( - - )} + {subGroups.length === 0 && }