Add pricing matrix

This commit is contained in:
Owen
2026-02-09 18:04:18 -08:00
parent 66f3fabbae
commit 1b5cfaa49b
8 changed files with 148 additions and 41 deletions

View File

@@ -45,7 +45,7 @@ export function verifyValidSubscription(tiers: string[]) {
const { tier, active } = await getOrgTierData(orgId);
const isTier = tiers.includes(tier || "");
if (!isTier || !active) {
if (!active) {
return next(
createHttpError(
HttpCode.FORBIDDEN,
@@ -53,6 +53,14 @@ export function verifyValidSubscription(tiers: string[]) {
)
);
}
if (!isTier) {
return next(
createHttpError(
HttpCode.FORBIDDEN,
"Organization subscription tier does not have access to this feature"
)
);
}
return next();
} catch (e) {