mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 07:32:14 +00:00
Fix user model for bans
This commit is contained in:
parent
20cdf48a53
commit
1e298638af
2 changed files with 2 additions and 0 deletions
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'],
|
||||||
|
|
Loading…
Reference in a new issue