mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-28 03:19:38 +00:00
fix(subsonic): change role filter logic
fix #4140 Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
b19d5f0d3e
commit
fa2cf36245
1 changed files with 2 additions and 2 deletions
|
|
@ -212,9 +212,9 @@ func (r *artistRepository) GetIndex(includeMissing bool, roles ...model.Role) (m
|
|||
options := model.QueryOptions{Sort: "name"}
|
||||
if len(roles) > 0 {
|
||||
roleFilters := slice.Map(roles, func(r model.Role) Sqlizer {
|
||||
return roleFilter("role", r)
|
||||
return roleFilter("role", r.String())
|
||||
})
|
||||
options.Filters = And(roleFilters)
|
||||
options.Filters = Or(roleFilters)
|
||||
}
|
||||
if !includeMissing {
|
||||
if options.Filters == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue