mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #16145] [CLOSED] Consider user's library access permissions when querying genre for collections #14539
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16145
Author: @dfederm
Created: 1/31/2026
Status: ❌ Closed
Base:
master← Head:fix-16135📝 Commits (1)
fd7806fConsider user's library access permissions when querying genre for collections📊 Changes
1 file changed (+20 additions, -8 deletions)
View changed files
📝
Jellyfin.Api/Controllers/FilterController.cs(+20 -8)📄 Description
Fixes #16135
In
FilterController.GetQueryFilters(), when querying for global item types (BoxSet, Playlist, Trailer, Program), the code setparentItem = null. This resulted ingenreQuery.AncestorIds = Array.Empty<Guid>(), which queried ALL libraries regardless of user permissions.This change fixes the issue by making it so that when
parentItem is nullbut the user exists, restrict the query to only the user's accessible library folders.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.