diff --git a/app/controllers/web/my-account/ensure-team-plan.js b/app/controllers/web/my-account/ensure-team-plan.js index cd6a5d640..a61502063 100644 --- a/app/controllers/web/my-account/ensure-team-plan.js +++ b/app/controllers/web/my-account/ensure-team-plan.js @@ -4,7 +4,8 @@ */ function ensureTeamPlan(ctx, next) { - ctx.state.isTeamPlanRequired = ctx.state.domain.plan !== 'team'; + if (ctx.state.domain.plan !== 'team') + throw Boom.paymentRequired(ctx.translateError('TEAM_PLAN_REQUIRED')); return next(); }