aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-13 11:25:13 +0200
committerChocobozzz <me@florianbigard.com>2019-05-13 11:25:13 +0200
commit1acd784cf984bb91d39c37a248805a7f96ea6643 (patch)
tree68bf72fbcf472de4b54dffcd49d0386a0ddbb666 /client/src/app/videos
parent72675ebe0181ab2389fb2f75a3b2acdca6e09c07 (diff)
downloadPeerTube-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.ts4
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 () {