mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-17 21:12:06 +00:00
Fix: playlist showing for guest when perm set to guest
This commit is contained in:
parent
dda5077727
commit
74e7b25877
1 changed files with 3 additions and 0 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue