👔 Optimize subscriptions logic

This commit is contained in:
2025-10-16 13:13:08 +08:00
parent f01226d91a
commit 7f8521bb40
3 changed files with 14 additions and 2 deletions

View File

@@ -197,7 +197,8 @@ public class SubscriptionGiftController(
if (currentUser.Profile.Level < MinimumAccountLevel)
{
return StatusCode(403, "Account level must be at least 60 to purchase a gift.");
if (currentUser.PerkSubscription is null)
return StatusCode(403, "Account level must be at least 60 or a member of the Stellar Program to purchase a gift.");
}
Duration? giftDuration = null;