feat: add granular user permissions (balance, subscription, promo_group, referral, send_offer)

Split users:edit into fine-grained permissions. Guard UI sections
with hasPermission checks so moderators only see what they can do.
This commit is contained in:
Fringg
2026-02-25 04:42:40 +03:00
parent 80bfaca457
commit 3d6987f761
5 changed files with 176 additions and 138 deletions

View File

@@ -2407,7 +2407,12 @@
"manage": "مدیریت",
"ban": "مسدود کردن",
"unban": "رفع مسدودیت",
"assign": "اختصاص"
"assign": "اختصاص",
"promo_group": "گروه تبلیغاتی",
"balance": "موجودی",
"subscription": "اشتراک",
"send_offer": "ارسال پیشنهاد",
"referral": "درصد ارجاع"
},
"toggleSection": "تغییر وضعیت تمام مجوزهای {{section}}",
"selectedPermissions_other": "{{count}} مجوز انتخاب شده",