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

@@ -3166,7 +3166,12 @@
"manage": "Управление",
"ban": "Бан",
"unban": "Разбан",
"assign": "Назначение"
"assign": "Назначение",
"promo_group": "Промо-группа",
"balance": "Баланс",
"subscription": "Подписка",
"send_offer": "Промо-предложение",
"referral": "Реф. процент"
},
"toggleSection": "Переключить все права {{section}}",
"selectedPermissions_one": "{{count}} разрешение выбрано",