Skip to content

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

misc: updated gateway permission check

Sheen Capadngan073e8b249604
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx
index d9f9eff7b4..0e3069aeeb 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx
@@ -39,7 +39,6 @@ import {
} from "@app/components/v2";
import {
OrgGatewayPermissionActions,
- OrgPermissionAppConnectionActions,
OrgPermissionSubjects
} from "@app/context/OrgPermissionContext/types";
import { withPermission } from "@app/hoc";
@@ -206,8 +205,8 @@ export const GatewayTab = withPermission(
</OrgPermissionCan>
)}
<OrgPermissionCan
- I={OrgPermissionAppConnectionActions.Delete}
- a={OrgPermissionSubjects.AppConnections}
+ I={OrgGatewayPermissionActions.DeleteGateways}
+ a={OrgPermissionSubjects.Gateway}
>
{(isAllowed: boolean) => (
<DropdownMenuItem