Can I set transform:null for a custom method?
pcorey opened this issue · 3 comments
pcorey commented
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?
aldeed commented
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.
aldeed commented
Implemented. See updated docs: https://github.com/ongoworks/meteor-security#transformations
pcorey commented
Awesome! Thanks a lot!