mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-09 22:24:35 +02:00
* Leaving feedback to Sysop #20
* Cache sysop info after first user created * ACS check preventing sysop from sending feedback to themselves @ apply
This commit is contained in:
parent
3dbc90b04f
commit
839ab8fc91
3 changed files with 22 additions and 2 deletions
|
@ -132,6 +132,15 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
|||
} else {
|
||||
Log.info( { username : formData.value.username, userId : newUser.userId }, 'New user created');
|
||||
|
||||
// Cache SysOp information now
|
||||
// :TODO: Similar to bbs.js. DRY
|
||||
if(newUser.isSysOp()) {
|
||||
Config.general.sysOp = {
|
||||
username : formData.value.username,
|
||||
properties : newUser.properties,
|
||||
};
|
||||
}
|
||||
|
||||
if(user.User.AccountStatus.inactive === client.user.properties.account_status) {
|
||||
callingMenu.gotoMenu(extraArgs.inactive);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue