add payment text
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
2026-09-30 16:26:38 +05:00
parent 7e403dab13
commit ebedeba009
19 changed files with 1387 additions and 23 deletions

View File

@@ -53,6 +53,11 @@ func IsOwnScope(c *gin.Context) bool {
return p != nil && p.Scope == ScopeOwn
}
func IsSuper(c *gin.Context) bool {
p := PrincipalFrom(c)
return p != nil && p.IsSuper
}
func HasAllScope(c *gin.Context) bool {
p := PrincipalFrom(c)
return p != nil && p.Scope == ScopeAll