Merge branch '0.0.10-alpha' of ssh://numinibsd/git/base/enigma-bbs into 0.0.11-beta

This commit is contained in:
Bryan Ashby 2020-02-18 09:45:58 -07:00
commit 76d421ecf7
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 2 additions and 1 deletions

View File

@ -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');