From 1368229c21434f234b6b11a5a66ea2fd9be0e77e Mon Sep 17 00:00:00 2001 From: DerpgonCz Date: Sat, 23 Apr 2016 15:52:10 +0200 Subject: [PATCH] Version update (0.6.2) --- package.json | 2 +- serverconfig.example.js | 2 ++ webserver/public/lib/js/app.js | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 055f82b..0cc9251 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mqp-server", - "version": "0.6.1", + "version": "0.6.2", "description": "musiqpad self-hosted server", "main": "server-package.js", "author": "musiqpad Team ", diff --git a/serverconfig.example.js b/serverconfig.example.js index bf1ae45..3810429 100644 --- a/serverconfig.example.js +++ b/serverconfig.example.js @@ -365,6 +365,7 @@ config.roles = { 'djqueue.joinlocked', 'djqueue.leave', 'chat.send', + 'chat.private', 'djqueue.skip.self', 'playlist.create', 'playlist.delete', @@ -383,6 +384,7 @@ config.roles = { 'djqueue.join', 'djqueue.leave', 'chat.send', + 'chat.private', 'djqueue.skip.self', 'playlist.create', 'playlist.delete', diff --git a/webserver/public/lib/js/app.js b/webserver/public/lib/js/app.js index b3dfd02..d62c5c8 100644 --- a/webserver/public/lib/js/app.js +++ b/webserver/public/lib/js/app.js @@ -4743,8 +4743,8 @@ var mentionSound = new Audio('../pads/lib/sound/mention.wav'); var onLogin = function(err, data, callback){ // There's probably a better place for this... - if (data.error){ - alert('There was an error signing up or logging in: ' + data.error); + if (err){ + alert('There was an error signing up or logging in: ' + err); MP.cookie.setCookie(MP.getTokenName(), '', -1); if (callback) callback(err); return;