mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: switched to secretapproval check for license
This commit is contained in:
@@ -16,7 +16,6 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
||||
environmentLimit: null,
|
||||
environmentsUsed: 0,
|
||||
dynamicSecret: false,
|
||||
secretReplication: false,
|
||||
secretVersioning: true,
|
||||
pitRecovery: false,
|
||||
ipAllowlisting: false,
|
||||
|
||||
@@ -52,7 +52,6 @@ export type TFeatureSet = {
|
||||
has_used_trial: true;
|
||||
secretApproval: false;
|
||||
secretRotation: true;
|
||||
secretReplication: false;
|
||||
};
|
||||
|
||||
export type TOrgPlansTableDTO = {
|
||||
|
||||
@@ -86,7 +86,7 @@ export const secretImportServiceFactory = ({
|
||||
);
|
||||
if (isReplication) {
|
||||
const plan = await licenseService.getPlan(actorOrgId);
|
||||
if (!plan.secretReplication) {
|
||||
if (!plan.secretApproval) {
|
||||
throw new BadRequestError({
|
||||
message: "Failed to create secret replication due to plan restriction. Upgrade plan to create replication."
|
||||
});
|
||||
@@ -338,7 +338,7 @@ export const secretImportServiceFactory = ({
|
||||
);
|
||||
|
||||
const plan = await licenseService.getPlan(actorOrgId);
|
||||
if (!plan.secretReplication) {
|
||||
if (!plan.secretApproval) {
|
||||
throw new BadRequestError({
|
||||
message: "Failed to create secret replication due to plan restriction. Upgrade plan to create replication."
|
||||
});
|
||||
|
||||
@@ -24,7 +24,6 @@ export type SubscriptionPlan = {
|
||||
scim: boolean;
|
||||
ldap: boolean;
|
||||
groups: boolean;
|
||||
secretReplication: boolean;
|
||||
status:
|
||||
| "incomplete"
|
||||
| "incomplete_expired"
|
||||
|
||||
@@ -69,7 +69,7 @@ export const CreateSecretImportForm = ({
|
||||
isReplication
|
||||
}: TFormSchema) => {
|
||||
try {
|
||||
if (isReplication && !subscription?.secretReplication) {
|
||||
if (isReplication && !subscription?.secretApproval) {
|
||||
onUpgradePlan();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user