package roles func HasRole(claims IHasRole, role string) bool { if claims.HasRole(Admin) { return true } return claims.HasRole(role) }