From ba6407713231b7c2291491a704cdd6bbc96555c7 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Fri, 12 Dec 2025 09:36:19 -0800 Subject: [PATCH] fix: correct sub-org identity check --- .../IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx index 483831d9c..5b7a9b7dc 100644 --- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx +++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx @@ -64,7 +64,7 @@ const Page = () => { select: (el) => el.identityId as string }); const { currentProject, projectId } = useProject(); - const { currentOrg } = useOrganization(); + const { currentOrg, isSubOrganization } = useOrganization(); const { data: identityMembershipDetails, isPending: isMembershipDetailsLoading } = useGetProjectIdentityMembershipV2(projectId, identityId); @@ -167,7 +167,9 @@ const Page = () => { const isOrgIdentity = !isProjectIdentity; const isSubOrgIdentity = - isOrgIdentity && currentOrg.rootOrgId !== identityMembershipDetails?.identity.orgId; + isOrgIdentity && + isSubOrganization && + currentOrg.rootOrgId !== identityMembershipDetails?.identity.orgId; return (