merged from gramsrv upstream

This commit is contained in:
onysd 2026-09-01 12:06:31 +03:00
parent 79c64ee916
commit 21a0856587
651 changed files with 54774 additions and 4590 deletions

View file

@ -59,6 +59,12 @@ const (
// decide how much a third-party mark is worth. Handing out the queue is
// routine; handing out the ability to appoint verifiers is not.
PermissionBotVerificationManage = "botverification.manage"
// PermissionPremiumManage guards grants, revocations and refunds. It is kept
// separate from Stars grants because a Premium refund mutates both ledgers.
PermissionPremiumManage = "premium.manage"
// PermissionBotTokenRead is intentionally narrower than unrestricted admin
// access because it reveals a live credential.
PermissionBotTokenRead = "bots.token.read"
)
// CodeForbidden is the stable code for a permission failure, so the panel can