]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/video-watch-playlist.component.ts
Fix client build
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch-playlist.component.ts
index 3ac06c099a1db96e6e6ba50ec598287109fd72a1..bccdaf7b20d779feaf993b0ba02277f2598fa993 100644 (file)
@@ -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 () {