Fix plan pkiAcme check

This commit is contained in:
Carlos Monastyrski
2025-11-19 01:56:02 -03:00
parent 89c1ef2f47
commit c2f05a6d57

View File

@@ -213,7 +213,7 @@ export const certificateProfileServiceFactory = ({
throw new NotFoundError({ message: "Project not found" });
}
const plan = await licenseService.getPlan(project.orgId);
if (!plan.pkiAcme) {
if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.EST) {
throw new BadRequestError({
message: "Failed to create certificate profile: Plan restriction. Upgrade plan to continue"
});