feat: normalize subscription architecture, integrate pgvector, and implement Stripe webhook subscription management.
This commit is contained in:
@@ -31,7 +31,7 @@ public class ProUserHandler : AuthorizationHandler<ProUserRequirement>
|
||||
}
|
||||
|
||||
// Rule 1: Explicit Pro plan
|
||||
if (user.CurrentPlan == "Pro")
|
||||
if (user.SubscriptionPlanId == SubscriptionPlan.ProId)
|
||||
{
|
||||
context.Succeed(requirement);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user