From 74e7b25877b8aff21713b6885c5d716d51d61085 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 22 Jul 2015 18:03:43 -0700 Subject: [PATCH] Fix: playlist showing for guest when perm set to guest --- lib/channel/playlist.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/channel/playlist.js b/lib/channel/playlist.js index 3a38b3f4..784b9349 100644 --- a/lib/channel/playlist.js +++ b/lib/channel/playlist.js @@ -218,6 +218,9 @@ PlaylistModule.prototype.onUserPostJoin = function (user) { user.socket.on("requestPlaylist", function () { self.sendPlaylist([user]); }); + user.on("login", function () { + self.sendPlaylist([user]); + }); user.socket.on("clearPlaylist", this.handleClear.bind(this, user)); user.socket.on("shufflePlaylist", this.handleShuffle.bind(this, user)); /* User playlists */