Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: dont show resend invite on sub-org user details page

Scott Wilsoncf40bbf3a7fc
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx
index 680795e2e2..bef98e875e 100644
--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx
+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx
@@ -35,7 +35,7 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) =>
});
const { user } = useUser();
- const { currentOrg } = useOrganization();
+ const { currentOrg, isSubOrganization } = useOrganization();
const userId = user?.id || "";
const orgId = currentOrg?.id || "";
@@ -214,7 +214,8 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) =>
<p className="text-sm text-mineshaft-300">-</p>
)}
</div>
- {membership.isActive &&
+ {!isSubOrganization &&
+ membership.isActive &&
(membership.status === "invited" || membership.status === "verified") &&
membership.user.email &&
serverDetails?.emailConfigured && (