multi-tenant
This commit is contained in:
@@ -726,3 +726,12 @@ func RecurseStructToMap(obj any) map[string]any {
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func IsMember(target string, group []string) bool {
|
||||
for _, str := range group {
|
||||
if target == str {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user