fix: multi role with oauth (#61)
This commit is contained in:
@@ -43,7 +43,7 @@ func IsSuperAdmin(gc *gin.Context) bool {
|
||||
func IsValidRoles(userRoles []string, roles []string) bool {
|
||||
valid := true
|
||||
for _, role := range roles {
|
||||
if !StringContains(userRoles, role) {
|
||||
if !StringSliceContains(userRoles, role) {
|
||||
valid = false
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user