Merge branch '0.0.10-alpha' of ssh://numinibsd/git/base/enigma-bbs
This commit is contained in:
commit
0cceda88fe
|
@ -408,7 +408,8 @@ module.exports = class User {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function setInitialGroupMembership(trans, callback) {
|
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?
|
if(User.RootUserID === self.userId) { // root/SysOp?
|
||||||
self.groups.push('sysops');
|
self.groups.push('sysops');
|
||||||
|
|
Loading…
Reference in New Issue