Skip to content

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

improvement: only show accessible sub-orgs

Scott Wilsond7bfa384995f
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
index ec0ba37373..31e2d1b4d1 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
@@ -140,7 +140,7 @@ export const Navbar = () => {
const [showSubOrgForm, setShowSubOrgForm] = useState(false);
const [showCardDeclinedModal, setShowCardDeclinedModal] = useState(false);
const { data: subOrganizations = [] } = useQuery({
- ...subOrganizationsQuery.list({ limit: 500 }),
+ ...subOrganizationsQuery.list({ limit: 500, isAccessible: true }),
enabled: Boolean(subscription.subOrganization)
});