fixes and improvements for new server settings menu

This commit is contained in:
onysd 2026-08-26 00:37:25 +03:00
parent 902f3606c2
commit 66f9c0bc1e
27 changed files with 2244 additions and 40 deletions

View file

@ -45,6 +45,13 @@ const (
// curates the icon catalogue and strips granted marks.
permissionBotVerificationReview = "botverification.review"
permissionBotVerificationManage = "botverification.manage"
// permissionServerManage gates the whole Server Settings panel: identity
// (name/description/icon), .env editing, and Restart/Update -- all of it
// meaningfully more sensitive than any domain-data action above (.env
// editing exposes every secret the deployment holds; Restart/Update runs
// git/go and bounces the live MTProto process), so it is one right, not
// split into review/manage like the sections above.
permissionServerManage = "server.manage"
)
type permissionsKey struct{}