diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-13 11:25:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-13 11:25:13 +0200 |
commit | 1acd784cf984bb91d39c37a248805a7f96ea6643 (patch) | |
tree | 68bf72fbcf472de4b54dffcd49d0386a0ddbb666 /client/src/app/videos | |
parent | 72675ebe0181ab2389fb2f75a3b2acdca6e09c07 (diff) | |
download | PeerTube-1acd784cf984bb91d39c37a248805a7f96ea6643.tar.gz PeerTube-1acd784cf984bb91d39c37a248805a7f96ea6643.tar.zst PeerTube-1acd784cf984bb91d39c37a248805a7f96ea6643.zip |
Fix playlists with unauthenticated users
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch-playlist.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts b/client/src/app/videos/+video-watch/video-watch-playlist.component.ts index 3ac06c099..bccdaf7b2 100644 --- a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts +++ b/client/src/app/videos/+video-watch/video-watch-playlist.component.ts | |||
@@ -47,7 +47,9 @@ export class VideoWatchPlaylistComponent { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | isPlaylistOwned () { | 49 | isPlaylistOwned () { |
50 | return this.playlist.isLocal === true && this.playlist.ownerAccount.name === this.auth.getUser().username | 50 | return this.playlist.isLocal === true && |
51 | this.auth.isLoggedIn() && | ||
52 | this.playlist.ownerAccount.name === this.auth.getUser().username | ||
51 | } | 53 | } |
52 | 54 | ||
53 | isUnlistedPlaylist () { | 55 | isUnlistedPlaylist () { |