Fix: playlist showing for guest when perm set to guest

This commit is contained in:
calzoneman 2015-07-22 18:03:43 -07:00
parent dda5077727
commit 74e7b25877
1 changed files with 3 additions and 0 deletions

View File

@ -218,6 +218,9 @@ PlaylistModule.prototype.onUserPostJoin = function (user) {
user.socket.on("requestPlaylist", function () { user.socket.on("requestPlaylist", function () {
self.sendPlaylist([user]); self.sendPlaylist([user]);
}); });
user.on("login", function () {
self.sendPlaylist([user]);
});
user.socket.on("clearPlaylist", this.handleClear.bind(this, user)); user.socket.on("clearPlaylist", this.handleClear.bind(this, user));
user.socket.on("shufflePlaylist", this.handleShuffle.bind(this, user)); user.socket.on("shufflePlaylist", this.handleShuffle.bind(this, user));
/* User playlists */ /* User playlists */