Skip to content

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

fix(pam): pass selected resource to PamAccessAccountModal on resource page

bernie-gf158973abb86
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
index 609274527f..1684b74320 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
@@ -654,6 +654,7 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
if (!isOpen) setAccessReason(undefined);
}}
account={popUp.accessAccount.data?.account}
+ resource={popUp.accessAccount.data?.resource}
projectId={projectId!}
reason={accessReason}
/>