From d103099b6996ab428883fd148746f9777f315ee0 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 7 Feb 2023 23:07:18 +0200 Subject: [PATCH] default value --- src/server/structures/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/structures/User.js b/src/server/structures/User.js index e9db37f..30394b2 100644 --- a/src/server/structures/User.js +++ b/src/server/structures/User.js @@ -37,7 +37,7 @@ class User { this._applications = data.applications || []; this.externalProfiles = data.externalProfiles || {}; - this.permissions = PermissionManager.merge(data.permissions, PermissionManager.DefaultPermissions); + this.permissions = PermissionManager.merge(data.permissions || {}, PermissionManager.DefaultPermissions); /** @private */ this._passwordHash = data.password || null;