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
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Reference in a new issue