mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-05 01:38:51 +01:00
Revert "fix(scanner): skip library filter for empty user ID on fresh installs"
This reverts commit 91647ed46f.
This commit is contained in:
parent
fda536ff17
commit
5b01636d33
1 changed files with 2 additions and 2 deletions
|
|
@ -205,8 +205,8 @@ func libraryIdFilter(_ string, value any) Sqlizer {
|
|||
func (r sqlRepository) applyLibraryFilter(sq SelectBuilder, tableName ...string) SelectBuilder {
|
||||
user := loggedUser(r.ctx)
|
||||
|
||||
// If the user is an admin, or the user ID is empty/invalid (e.g., when no user is logged in), skip the library filter
|
||||
if user.IsAdmin || user.ID == "" || user.ID == invalidUserId {
|
||||
// If the user is an admin, or the user ID is invalid (e.g., when no user is logged in), skip the library filter
|
||||
if user.IsAdmin || user.ID == invalidUserId {
|
||||
return sq
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue