Skip to content

Commit

Permalink
ThemeContainsPark2
Browse files Browse the repository at this point in the history
  • Loading branch information
zjjhot committed Aug 23, 2023
1 parent 6b10a2b commit 95a1333
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,7 @@ func GetOrderByName() string {
}

// user customer funtions
/*
func contain(s []string, e string) bool {
for _, a := range s {
if a == e {
Expand All @@ -1304,8 +1305,10 @@ func contain(s []string, e string) bool {
}
return false
}
*/

func (u *User) ThemeContainsPark() bool {
ars := []string{"plex", "aquamarine", "dark", "dracula", "hotline", "organizr", "space-gray", "hotpink", "onedark", "overseerr", "nord"}
return contain(ars, u.Theme)
//return contain(ars, u.Theme)
return util.SliceContains(ars, u.Theme)
}

0 comments on commit 95a1333

Please sign in to comment.