mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* Some more JSON -> HJSON cleanup
* More work on ACS system conditional matching. Now functional within menus. Still more work to go on various ACS checks themselves. * Use ACS for new user path: If new user requires activation, they will see 'DONE' then get logged off
This commit is contained in:
parent
03f9ad4789
commit
688e46bc47
9 changed files with 93 additions and 68 deletions
|
@ -14,11 +14,11 @@ function getConditionalValue(client, condArray, memberName) {
|
|||
assert(_.isArray(condArray));
|
||||
assert(_.isString(memberName));
|
||||
|
||||
console.log(condArray)
|
||||
|
||||
condArray.forEach(function cond(c) {
|
||||
if(acsParser.parse(c.acs, { client : client })) {
|
||||
return c[memberName];
|
||||
}
|
||||
var matchCond = _.find(condArray, function cmp(cond) {
|
||||
return acsParser.parse(cond.acs, { client : client } );
|
||||
});
|
||||
|
||||
if(matchCond) {
|
||||
return matchCond[memberName];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue