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

@@ -2406,7 +2406,12 @@
"manage": "管理",
"ban": "封禁",
"unban": "解封",
"assign": "分配"
"assign": "分配",
"promo_group": "促销组",
"balance": "余额",
"subscription": "订阅",
"send_offer": "发送优惠",
"referral": "推荐佣金"
},
"toggleSection": "切换所有 {{section}} 权限",
"selectedPermissions_other": "已选择 {{count}} 个权限",