Skip to content

🎧 Your Personal Streaming Service

fix(server): role filters in Smart Playlists.

Deluan5ad9f546b2b3
diff --git a/model/tag_mappings.go b/model/tag_mappings.go
index f0f8ac2f0..76b54df17 100644
--- a/model/tag_mappings.go
+++ b/model/tag_mappings.go
@@ -200,9 +200,9 @@ func init() {
conf.AddHook(func() {
loadTagMappings()
- // This is here to avoid cyclic imports. The criteria package needs to know all tag names, so they can be used in
- // smart playlists
- criteria.AddTagNames(tagNames())
+ // This is here to avoid cyclic imports. The criteria package needs to know all tag names, so they can be
+ // used in smart playlists
criteria.AddRoles(slices.Collect(maps.Keys(AllRoles)))
+ criteria.AddTagNames(tagNames())
})
}