From 1acd784cf984bb91d39c37a248805a7f96ea6643 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 May 2019 11:25:13 +0200 Subject: Fix playlists with unauthenticated users --- client/src/app/videos/+video-watch/video-watch-playlist.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos') 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 { } isPlaylistOwned () { - return this.playlist.isLocal === true && this.playlist.ownerAccount.name === this.auth.getUser().username + return this.playlist.isLocal === true && + this.auth.isLoggedIn() && + this.playlist.ownerAccount.name === this.auth.getUser().username } isUnlistedPlaylist () { -- cgit v1.2.3