diff --git a/util.go b/util.go index f107f33..f1b062f 100644 --- a/util.go +++ b/util.go @@ -177,3 +177,12 @@ func parseProfile(user legacyUser) Profile { return profile } + +func stringInSlice(a string, list []string) bool { + for _, b := range list { + if b == a { + return true + } + } + return false +}