From 404923a5eebc1d1300acd9a0651b41011f94821c Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 25 Mar 2022 18:21:57 +0200 Subject: [PATCH] default perms --- server/src/client/Users.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;