fix: playground group

This commit is contained in:
1808837298@qq.com
2024-10-10 13:39:09 +08:00
parent e298f2e5a4
commit 6a8a4bcf65
2 changed files with 12 additions and 1 deletions

View File

@@ -21,3 +21,8 @@ func UpdateUserUsableGroupsByJSONString(jsonStr string) error {
UserUsableGroups = make(map[string]string)
return json.Unmarshal([]byte(jsonStr), &UserUsableGroups)
}
func GroupInUserUsableGroups(groupName string) bool {
_, ok := UserUsableGroups[groupName]
return ok
}