reactioncommerce/meteor-security

Can I set transform:null for a custom method?

pcorey opened this issue · 3 comments

Documents passed to custom methods defined with Security.defineMethod are transformed by default. Is there a way to set transform: null, like I would on a normal .deny call?

No. We can add this, but it will not be quite as simple as you might think because a single "real" deny function runs all of the deny functions from this package. Maybe we can have the single deny function with transform: null by default, and manually transform the doc before passing it to any security rules that request a transform.

Awesome! Thanks a lot!