aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Playlists
diff options
context:
space:
mode:
authorShadowghost <Shadowghost@users.noreply.github.com>2023-05-12 15:11:59 +0200
committerGitHub <noreply@github.com>2023-05-12 07:11:59 -0600
commita8cdf4434b10044dbb9ba540d6d137906aa67b54 (patch)
tree869f8bcd21ba3ae97e16335ad1697b8e8e843405 /MediaBrowser.Controller/Playlists
parentfdda72139411a89a64a1a1bb7282f273dc720e42 (diff)
Fix access to playlists not created by a user (#9746)
Diffstat (limited to 'MediaBrowser.Controller/Playlists')
-rw-r--r--MediaBrowser.Controller/Playlists/Playlist.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Playlists/Playlist.cs b/MediaBrowser.Controller/Playlists/Playlist.cs
index 344e996ea..498df5ab0 100644
--- a/MediaBrowser.Controller/Playlists/Playlist.cs
+++ b/MediaBrowser.Controller/Playlists/Playlist.cs
@@ -34,10 +34,13 @@ namespace MediaBrowser.Controller.Playlists
public Playlist()
{
Shares = Array.Empty<Share>();
+ OpenAccess = false;
}
public Guid OwnerUserId { get; set; }
+ public bool OpenAccess { get; set; }
+
public Share[] Shares { get; set; }
[JsonIgnore]
@@ -233,6 +236,11 @@ namespace MediaBrowser.Controller.Playlists
return base.IsVisible(user);
}
+ if (OpenAccess)
+ {
+ return true;
+ }
+
var userId = user.Id;
if (userId.Equals(OwnerUserId))
{