Fix user model for bans

This commit is contained in:
Chris Blanchard 2015-08-27 13:06:54 +01:00
parent 20cdf48a53
commit 1e298638af
2 changed files with 2 additions and 0 deletions

View file

@ -57,6 +57,7 @@ module.exports = io => {
return next(new Error("Authentication Failed")) return next(new Error("Authentication Failed"))
}; };
socket._user = new User(body); socket._user = new User(body);
console.log(socket._user)
if (socket._user.bans.gather) { if (socket._user.bans.gather) {
return next(new Error("Gather Banned")); return next(new Error("Gather Banned"));
} }

View file

@ -16,6 +16,7 @@
this.avatar = client.baseUrl + user['avatar']; this.avatar = client.baseUrl + user['avatar'];
this.admin = user['admin']; this.admin = user['admin'];
this.team = user['team']; this.team = user['team'];
this.bans = user['bans'];
if (user['steam']) { if (user['steam']) {
this.steam = { this.steam = {
url: user['steam']['url'], url: user['steam']['url'],