diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2024-04-03 16:23:14 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2024-04-03 16:23:14 +0200 |
| commit | 247ec19de4945f4d7ab64d4a8772b72759e3d2b7 (patch) | |
| tree | 5f53d8ab67c29731160910325c06912ee699749d | |
| parent | d72f40fe4159d83440c3362d137901e4c418c4b9 (diff) | |
Fixup
| -rw-r--r-- | Jellyfin.Api/Controllers/PlaylistsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/PlaylistsController.cs b/Jellyfin.Api/Controllers/PlaylistsController.cs index d6239503c..54b2261ab 100644 --- a/Jellyfin.Api/Controllers/PlaylistsController.cs +++ b/Jellyfin.Api/Controllers/PlaylistsController.cs @@ -208,7 +208,7 @@ public class PlaylistsController : BaseJellyfinApiController return NotFound("Playlist not found"); } - var isPermitted = playlist.OwnerUserId.Equals(userId) + var isPermitted = playlist.OwnerUserId.Equals(callingUserId) || playlist.Shares.Any(s => s.CanEdit && s.UserId.Equals(callingUserId)) || userId.Equals(callingUserId); |
