This commit is contained in:
2026-09-04 13:05:54 +03:30
parent 463b812e3e
commit 17082a5ea9
43 changed files with 5663 additions and 285 deletions
+3
View File
@@ -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(