Skip to content

Commit 95a1333

Browse files
committed
ThemeContainsPark2
1 parent 6b10a2b commit 95a1333

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

models/user/user.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,7 @@ func GetOrderByName() string {
12961296
}
12971297

12981298
// user customer funtions
1299+
/*
12991300
func contain(s []string, e string) bool {
13001301
for _, a := range s {
13011302
if a == e {
@@ -1304,8 +1305,10 @@ func contain(s []string, e string) bool {
13041305
}
13051306
return false
13061307
}
1308+
*/
13071309

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

0 commit comments

Comments
 (0)