mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 14:36:19 +02:00
Fix group assignment bug
This commit is contained in:
parent
d712c36171
commit
e9cc49497c
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue