Skip to content

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

feat: corrected the inversion

=58b24d95a438
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index 97bb4d5111..8152a3947b 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -295,7 +295,7 @@ export const pamAccountServiceFactory = (deps: TPamAccountServiceFactoryDep) =>
const plan = await licenseService.getPlan(ctx.actorOrgId);
// The `pam` gate flag is ignored when null; an explicit `true` blocks PAM account creation.
- if (typeof plan.pam === "boolean" && plan.pam) {
+ if (typeof plan.pam === "boolean" && !plan.pam) {
throw new BadRequestError({
message: "PAM is not available on your current plan. Please upgrade to continue."
});
diff --git a/backend/src/services/certificate-authority/certificate-authority-service.ts b/backend/src/services/certificate-authority/certificate-authority-service.ts
index c37115d4fe..a85cecc297 100644
--- a/backend/src/services/certificate-authority/certificate-authority-service.ts
+++ b/backend/src/services/certificate-authority/certificate-authority-service.ts
@@ -315,7 +315,7 @@ export const certificateAuthorityServiceFactory = ({
const plan = await licenseService.getPlan(actor.orgId);
// The `certManager` gate flag is ignored when null; an explicit `true` blocks creating any CA
// (internal or external).
- if (typeof plan.certManager === "boolean" && plan.certManager) {
+ if (typeof plan.certManager === "boolean" && !plan.certManager) {
throw new BadRequestError({
message: "Certificate Manager is not available on your current plan. Please upgrade to continue."
});
diff --git a/frontend/src/layouts/PamLayout/PamLayout.tsx b/frontend/src/layouts/PamLayout/PamLayout.tsx
index 1a518156d8..a9268a3e2f 100644
--- a/frontend/src/layouts/PamLayout/PamLayout.tsx
+++ b/frontend/src/layouts/PamLayout/PamLayout.tsx
@@ -10,7 +10,7 @@ export const PamLayout = () => {
const { assumedPrivilegeDetails } = useProjectPermission();
const { subscription } = useSubscription();
- const isPamGated = subscription?.pam === true;
+ const isPamGated = subscription?.pam === false;
const [isUpgradeModalOpen, setIsUpgradeModalOpen] = useState(isPamGated);
useEffect(() => {
diff --git a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
index 6da1d4a4f9..2242cb5f71 100644
--- a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
+++ b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
@@ -13,7 +13,7 @@ export const PkiManagerLayout = () => {
const pathname = useRouterState({ select: (s) => s.location.pathname });
const isDashboard = /\/cert-manager\/[^/]+\/overview\/?$/.test(pathname);
- const isCertManagerGated = subscription?.certManager === true;
+ const isCertManagerGated = subscription?.certManager === false;
const [isUpgradeModalOpen, setIsUpgradeModalOpen] = useState(isCertManagerGated);
useEffect(() => {