CacheControl / CacheControl/json-rules-engine

Use fact as params input to another fact?

Aperta
#308 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3.1k
Fork
507
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I've looked across the documentation, examples and existing issues and, if this has been previously discussed, I'm missing it. Is it possible to use one or more Fact as `params` input to another fact?

This is a little domain specific but, for example, if I have a fact that gets a "section" related to another object (via `params`) and then another fact that verifies "section" access control, can I do something like this as a fact?
```js
{
// Has permission to section?
fact: 'has-permission',
params: {
fact: 'related-section',
params: {
id: 'xyz123'
}
},
operator: 'equal',
value: true
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.