Skip to content

Commit 745d3bd

Browse files
committed
revert(dashboard-api): allow unverified devs to pass plan limits so sandbox capability handles them
1 parent 3462ed9 commit 745d3bd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

apps/dashboard-api/src/middlewares/planEnforcement.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ exports.checkProjectLimit = async function(req, res, next) {
3838
const { resolveEffectivePlan, getPlanLimits } = require('@urbackend/common');
3939
try {
4040
if (isAdminRequest(req)) return next();
41-
if (!req.developer?.isVerified) {
42-
const err = new Error('Email not verified. Please verify your email to create a project.');
43-
err.status = 403;
44-
return next(err);
45-
}
41+
if (!req.developer?.isVerified) return next();
4642

4743
const effectivePlan = resolveEffectivePlan(req.developer);
4844
const limits = getPlanLimits({ plan: effectivePlan });

0 commit comments

Comments
 (0)