add payment text
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user