* 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
|
@ -85,6 +85,8 @@ Message.WellKnownAreaNames = {
|
||||||
Private : 'private_mail'
|
Private : 'private_mail'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// :TODO: This doesn't seem like a good way to go -- perhaps only for local/user2user, or just use
|
||||||
|
// a system similar to the "last read" for general areas
|
||||||
Message.Status = {
|
Message.Status = {
|
||||||
New : 0,
|
New : 0,
|
||||||
Read : 1,
|
Read : 1,
|
||||||
|
|
|
@ -132,6 +132,15 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
||||||
} else {
|
} else {
|
||||||
Log.info( { username : formData.value.username, userId : newUser.userId }, 'New user created');
|
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) {
|
if(user.User.AccountStatus.inactive === client.user.properties.account_status) {
|
||||||
callingMenu.gotoMenu(extraArgs.inactive);
|
callingMenu.gotoMenu(extraArgs.inactive);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -123,7 +123,17 @@
|
||||||
*/
|
*/
|
||||||
newUserApplication: {
|
newUserApplication: {
|
||||||
art: NUA
|
art: NUA
|
||||||
next: newUserFeedbackToSysOpPreamble
|
next: [
|
||||||
|
{
|
||||||
|
// Initial SysOp does not send feedback to themselves
|
||||||
|
acs: ID1
|
||||||
|
next: fullLoginSequenceLoginArt
|
||||||
|
}
|
||||||
|
{
|
||||||
|
// ...everyone else does
|
||||||
|
next: newUserFeedbackToSysOpPreamble
|
||||||
|
}
|
||||||
|
]
|
||||||
form: {
|
form: {
|
||||||
0: {
|
0: {
|
||||||
mci: {
|
mci: {
|
||||||
|
@ -309,7 +319,6 @@
|
||||||
next: fullLoginSequenceLoginArt
|
next: fullLoginSequenceLoginArt
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
// acs: !AS2
|
|
||||||
next: newUserInactiveDone
|
next: newUserInactiveDone
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue