mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 17:28:18 +00:00
Fix stripe checks
This commit is contained in:
@@ -85,7 +85,7 @@ const EnvironmentTable = ({ data = [], onCreateEnv, onDeleteEnv, onUpdateEnv }:
|
|||||||
<Button
|
<Button
|
||||||
text="Add New Environment"
|
text="Add New Environment"
|
||||||
onButtonPressed={() => {
|
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');
|
handlePopUpOpen('createUpdateEnv');
|
||||||
} else {
|
} else {
|
||||||
handlePopUpOpen('upgradePlan');
|
handlePopUpOpen('upgradePlan');
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ const ProjectUsersTable = ({ userData, changeData, myUser, filter }: Props) => {
|
|||||||
denials = [];
|
denials = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentPlan !== plans.professional && host === 'https://app.infisical.com') {
|
if (currentPlan !== plans.professional && host === 'https://app.infisical.com' && workspaceId !== '63ea8121b6e2b0543ba79616') {
|
||||||
setIsUpgradeModalOpen(true);
|
setIsUpgradeModalOpen(true);
|
||||||
} else {
|
} else {
|
||||||
const allDenials = userData[index].deniedPermissions
|
const allDenials = userData[index].deniedPermissions
|
||||||
|
|||||||
@@ -54,7 +54,8 @@ export const OrgSettingsPage = () => {
|
|||||||
const isMoreUsersNotAllowed =
|
const isMoreUsersNotAllowed =
|
||||||
(orgUsers || []).length >= 5 &&
|
(orgUsers || []).length >= 5 &&
|
||||||
subscriptionPlan === plans.starter &&
|
subscriptionPlan === plans.starter &&
|
||||||
host === 'https://app.infisical.com';
|
host === 'https://app.infisical.com' &&
|
||||||
|
currentWorkspace?._id !== '63ea8121b6e2b0543ba79616';
|
||||||
|
|
||||||
const onRenameOrg = async (name: string) => {
|
const onRenameOrg = async (name: string) => {
|
||||||
if (!currentOrg?._id) return;
|
if (!currentOrg?._id) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user