mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Permissions] Channels appear empty unless user has All Libraries access #1473
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?
Originally created by @PrplHaz4 on GitHub (Mar 30, 2020).
Describe the bug
No items are listed in Channels provided by Plugins (LazyMan, ServerWMC) for users that do NOT have "Enable access to All Libraries".
System (please complete the following information):
To Reproduce
Expected behavior
Items provided by the Plugin are listed in the Channel
Logs
Screenshots
Additional context
Quality bug report courtesty of @nebulous999 here: https://github.com/jellyfin/jellyfin-plugin-serverwmc/issues/10
Issue appears to be on this line, where there is a check for enabled folders but not for enabled channels:
https://github.com/jellyfin/jellyfin/blob/master/MediaBrowser.Api/UserLibrary/ItemsService.cs#L228
It seems this code was touched with this commits to add trimming by folder:
https://github.com/jellyfin/jellyfin/issues/930
https://github.com/jellyfin/jellyfin/issues/1436