Fix stripe checks

This commit is contained in:
Vladyslav Matsiiako
2023-03-08 16:20:47 -08:00
parent 29636173ef
commit 7854a5eea2
3 changed files with 4 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ const EnvironmentTable = ({ data = [], onCreateEnv, onDeleteEnv, onUpdateEnv }:
<Button
text="Add New Environment"
onButtonPressed={() => {
if (plan !== plans.starter || host !== 'https://app.infisical.com') {
if (plan !== plans.starter || host !== 'https://app.infisical.com' || localStorage.getItem('projectData.id') === '63ea8121b6e2b0543ba79616') {
handlePopUpOpen('createUpdateEnv');
} else {
handlePopUpOpen('upgradePlan');

View File

@@ -127,7 +127,7 @@ const ProjectUsersTable = ({ userData, changeData, myUser, filter }: Props) => {
denials = [];
}
if (currentPlan !== plans.professional && host === 'https://app.infisical.com') {
if (currentPlan !== plans.professional && host === 'https://app.infisical.com' && workspaceId !== '63ea8121b6e2b0543ba79616') {
setIsUpgradeModalOpen(true);
} else {
const allDenials = userData[index].deniedPermissions

View File

@@ -54,7 +54,8 @@ export const OrgSettingsPage = () => {
const isMoreUsersNotAllowed =
(orgUsers || []).length >= 5 &&
subscriptionPlan === plans.starter &&
host === 'https://app.infisical.com';
host === 'https://app.infisical.com' &&
currentWorkspace?._id !== '63ea8121b6e2b0543ba79616';
const onRenameOrg = async (name: string) => {
if (!currentOrg?._id) return;