add status filter

This commit is contained in:
Aditya Siregar
2025-10-13 07:55:29 +07:00
parent e67b9a357f
commit 1a9cc40c7f
2 changed files with 17 additions and 10 deletions
+4
View File
@@ -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{}{})