From e9cc49497c4451e3b6452327a9ef2602851464c1 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 18 Feb 2020 09:35:23 -0700 Subject: [PATCH] Fix group assignment bug --- core/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/user.js b/core/user.js index 2d4883d7..439d32c8 100644 --- a/core/user.js +++ b/core/user.js @@ -408,7 +408,8 @@ module.exports = class User { }); }, function setInitialGroupMembership(trans, callback) { - self.groups = config.users.defaultGroups; + // Assign initial groups. Must perform a clone: #235 - All users are sysops (and I can't un-sysop them) + self.groups = [...config.users.defaultGroups]; if(User.RootUserID === self.userId) { // root/SysOp? self.groups.push('sysops');