mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 13:15:28 +02:00
ACS checks can now be applied to form actions
This commit is contained in:
parent
64c06d8809
commit
42ac6f8689
2 changed files with 19 additions and 1 deletions
|
@ -172,7 +172,8 @@ function handleAction(client, formData, conf, cb) {
|
|||
return cb(Errors.MissingParam('Missing config'));
|
||||
}
|
||||
|
||||
const actionAsset = asset.parseAsset(conf.action);
|
||||
const action = client.acs.getConditionalValue(conf.action, 'action'); // handle any conditionals
|
||||
const actionAsset = asset.parseAsset(action);
|
||||
if(!_.isObject(actionAsset)) {
|
||||
return cb(Errors.Invalid('Unable to parse "conf.action"'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue