IsOnFreePlan checks if a user is on the free plan
()
| 97 | |
| 98 | // IsOnFreePlan checks if a user is on the free plan |
| 99 | func (user User) IsOnFreePlan() bool { |
| 100 | return user.SubscriptionName == SubscriptionNameFree || user.SubscriptionName == "" |
| 101 | } |
| 102 | |
| 103 | // IsOnUltraPlan checks if a user is on the ultra plan |
| 104 | func (user User) IsOnUltraPlan() bool { |
no outgoing calls
no test coverage detected