From 1dea6749ba9bd2a102ea86b8c1c10307ed71c4eb Mon Sep 17 00:00:00 2001 From: mswider <37093293+mswider@users.noreply.github.com> Date: Sun, 11 Jun 2023 18:19:01 -0500 Subject: [PATCH] Allow custom environments in self-hosted instances --- .../views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx index f4fab2ab36..5e8f5afe79 100644 --- a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx +++ b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx @@ -90,7 +90,7 @@ export const ProjectSettingsPage = () => { // get user subscription const { subscription } = useSubscription(); const host = window.location.origin; - const isEnvServiceAllowed = ((currentWorkspace?.environments || []).length < (subscription?.envLimit || 3) && host === 'https://app.infisical.com'); + const isEnvServiceAllowed = ((currentWorkspace?.environments || []).length < (subscription?.envLimit || 3) || host !== 'https://app.infisical.com'); const onRenameWorkspace = async (name: string) => { try {