mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
remove on prem fet for gateway
This commit is contained in:
@@ -61,12 +61,12 @@ export const gatewayServiceFactory = ({
|
|||||||
projectGatewayDAL
|
projectGatewayDAL
|
||||||
}: TGatewayServiceFactoryDep) => {
|
}: TGatewayServiceFactoryDep) => {
|
||||||
const $validateOrgAccessToGateway = async (orgId: string, actorId: string, actorAuthMethod: ActorAuthMethod) => {
|
const $validateOrgAccessToGateway = async (orgId: string, actorId: string, actorAuthMethod: ActorAuthMethod) => {
|
||||||
if (!licenseService.onPremFeatures.gateway) {
|
// if (!licenseService.onPremFeatures.gateway) {
|
||||||
throw new BadRequestError({
|
// throw new BadRequestError({
|
||||||
message:
|
// message:
|
||||||
"Gateway handshake failed due to instance plan restrictions. Please upgrade your instance to Infisical's Enterprise plan."
|
// "Gateway handshake failed due to instance plan restrictions. Please upgrade your instance to Infisical's Enterprise plan."
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
const orgLicensePlan = await licenseService.getPlan(orgId);
|
const orgLicensePlan = await licenseService.getPlan(orgId);
|
||||||
if (!orgLicensePlan.gateway) {
|
if (!orgLicensePlan.gateway) {
|
||||||
throw new BadRequestError({
|
throw new BadRequestError({
|
||||||
|
|||||||
Reference in New Issue
Block a user