MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / IsOnProPlan

Method IsOnProPlan

api/pkg/entities/user.go:94–96  ·  view source on GitHub ↗

IsOnProPlan checks if a user is on the pro plan

()

Source from the content-addressed store, hash-verified

92
93// IsOnProPlan checks if a user is on the pro plan
94func (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
99func (user User) IsOnFreePlan() bool {

Callers 1

shouldSendAlertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected