aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2024-04-03 16:23:14 +0200
committerShadowghost <Ghost_of_Stone@web.de>2024-04-03 16:23:14 +0200
commit247ec19de4945f4d7ab64d4a8772b72759e3d2b7 (patch)
tree5f53d8ab67c29731160910325c06912ee699749d
parentd72f40fe4159d83440c3362d137901e4c418c4b9 (diff)
Fixup
-rw-r--r--Jellyfin.Api/Controllers/PlaylistsController.cs2
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);