IsOnProPlan checks if a user is on the pro plan
()
| 92 | |
| 93 | // IsOnProPlan checks if a user is on the pro plan |
| 94 | func (user User) IsOnProPlan() bool { |
| 95 | return user.SubscriptionName == SubscriptionNameProLifetime || user.SubscriptionName == SubscriptionNameProMonthly || user.SubscriptionName == SubscriptionNameProYearly |
| 96 | } |
| 97 | |
| 98 | // IsOnFreePlan checks if a user is on the free plan |
| 99 | func (user User) IsOnFreePlan() bool { |