add status filter
This commit is contained in:
@@ -30,6 +30,10 @@ type ContextInfo struct {
|
||||
UserName string
|
||||
}
|
||||
|
||||
func (c *ContextInfo) IsSuperAdmin() bool {
|
||||
return c.UserRole == "superadmin" || c.UserRole == "admin"
|
||||
}
|
||||
|
||||
type ctxKeyType struct{}
|
||||
|
||||
var ctxKey = ctxKeyType(struct{}{})
|
||||
|
||||
Reference in New Issue
Block a user