[PR #16145] [CLOSED] Consider user's library access permissions when querying genre for collections #14539

Closed
opened 2026-02-07 07:31:27 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/16145
Author: @dfederm
Created: 1/31/2026
Status: Closed

Base: masterHead: fix-16135


📝 Commits (1)

  • fd7806f Consider 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 set parentItem = null. This resulted in genreQuery.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 null but 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/16145 **Author:** [@dfederm](https://github.com/dfederm) **Created:** 1/31/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-16135` --- ### 📝 Commits (1) - [`fd7806f`](https://github.com/jellyfin/jellyfin/commit/fd7806f1dee88cf9c357d0b94771877c614b8b35) Consider user's library access permissions when querying genre for collections ### 📊 Changes **1 file changed** (+20 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/FilterController.cs` (+20 -8) </details> ### 📄 Description Fixes #16135 In `FilterController.GetQueryFilters()`, when querying for global item types (BoxSet, Playlist, Trailer, Program), the code set `parentItem = null`. This resulted in `genreQuery.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 null` but the user exists, restrict the query to only the user's accessible library folders. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:31:27 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14539