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;