mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Revert "fix(scanner): skip library filter for empty user ID on fresh installs"
This reverts commit 91647ed46f1eaeb30c6f71a466dfe38a3eaab420.
This commit is contained in:
parent
fda536ff17
commit
5b01636d33
@ -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…
x
Reference in New Issue
Block a user