diff --git a/server/src/client/Users.js b/server/src/client/Users.js index 6006dc2..f4d317c 100644 --- a/server/src/client/Users.js +++ b/server/src/client/Users.js @@ -31,8 +31,8 @@ class Users extends EventEmitter { this.emit('debug', `Result for ${id}: ${JSON.stringify(userPartial)}`); if (userPartial) return user; - user.permissions = {}; - await this.database.updateOne(this.collection, { id }, { id, tag: user.tag, permissions: {} }, true); + user.permissions = this.defaultPermissions; + await this.database.updateOne(this.collection, { id }, { id, tag: user.tag, permissions: this.defaultPermissions }, true); this.emit('userCreate', user); return user;