mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 19:20:37 +03:00
fix(server): role filters in Smart Playlists.
See https://github.com/navidrome/navidrome/discussions/3676#discussioncomment-12286960 Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
20297c2aea
commit
5ad9f546b2
@ -200,9 +200,9 @@ func init() {
|
|||||||
conf.AddHook(func() {
|
conf.AddHook(func() {
|
||||||
loadTagMappings()
|
loadTagMappings()
|
||||||
|
|
||||||
// This is here to avoid cyclic imports. The criteria package needs to know all tag names, so they can be used in
|
// This is here to avoid cyclic imports. The criteria package needs to know all tag names, so they can be
|
||||||
// smart playlists
|
// used in smart playlists
|
||||||
criteria.AddTagNames(tagNames())
|
|
||||||
criteria.AddRoles(slices.Collect(maps.Keys(AllRoles)))
|
criteria.AddRoles(slices.Collect(maps.Keys(AllRoles)))
|
||||||
|
criteria.AddTagNames(tagNames())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user