Skip to content

The open alternative to Salesforce, designed for AI.

fix(settings): gate APIs & Webhooks page on API_KEYS_AND_WEBHOOKS, not WORKSPACE (#21302)

Yiyang Pan6bfbe036f6fa
diff --git a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
index 8218742dbcd..2711915dd3d 100644
--- a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
+++ b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
@@ -656,10 +656,6 @@ export const SettingsRoutes = ({ isAdminPageEnabled }: SettingsRoutesProps) => (
path={SettingsPath.EmailGroupChannelDetail}
element={<SettingsWorkspaceEmailGroupChannelDetail />}
/>
- <Route
- path={SettingsPath.ApiWebhooks}
- element={<SettingsApiWebhooks />}
- />
<Route path={SettingsPath.Billing} element={<SettingsBilling />} />
<Route path={SettingsPath.Usage} element={<SettingsUsage />} />
<Route
@@ -825,6 +821,10 @@ export const SettingsRoutes = ({ isAdminPageEnabled }: SettingsRoutesProps) => (
/>
}
>
+ <Route
+ path={SettingsPath.ApiWebhooks}
+ element={<SettingsApiWebhooks />}
+ />
<Route
path={`${SettingsPath.GraphQLPlayground}`}
element={<SettingsGraphQLPlayground />}