tink_web
tink_web copied to clipboard
Access body/query in @:restrict
Currently if we try to access body/query in @:restrict like so:
@:restrict(user.id == body.id)
It will fail with something like undeclared identifier "body".
Would it be possible to parse the body before the check (maybe only if the restrict meta needs it) ?
For the query it should work (in theory). For the body, this is is pretty much intended, because we don't want to begin body parsing before access is granted. But I suppose we can allow reversing that order.