mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-25 13:51:00 +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"))
|
||||
};
|
||||
socket._user = new User(body);
|
||||
console.log(socket._user)
|
||||
if (socket._user.bans.gather) {
|
||||
return next(new Error("Gather Banned"));
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
this.avatar = client.baseUrl + user['avatar'];
|
||||
this.admin = user['admin'];
|
||||
this.team = user['team'];
|
||||
this.bans = user['bans'];
|
||||
if (user['steam']) {
|
||||
this.steam = {
|
||||
url: user['steam']['url'],
|
||||
|
|
Loading…
Reference in a new issue