adding
This commit is contained in:
@@ -97,6 +97,9 @@ class ReferralService:
|
||||
class FeatureAccessService:
|
||||
@staticmethod
|
||||
def is_active(user: User, feature_key: str) -> bool:
|
||||
# ابزارهای رایگان همیشه باز — پیش از دورهی آزمایشی و بعد از آن.
|
||||
if FeaturePlan.objects.filter(key=feature_key, is_free=True).exists():
|
||||
return True
|
||||
if user.is_in_trial:
|
||||
return True
|
||||
return FeatureActivation.objects.filter(
|
||||
|
||||
Reference in New Issue
Block a user