Closed bajtos closed 8 years ago
Closing in favour of #316
LGTM
Closing in favour of #316
??? I think you meant to close #315
I think you meant to close #315
Ah, of course, I have reopened this one.
Landed and released in strong-remoting@2.28.1
Return 401 Not Authorized when making an unauthorised request to a prototype method for a model instance that does not exist.
Potentially breaking change affecting prototype methods:
Hooks registered before "invoke" phase (i.e. "auth" phase and any custom phases inserted before "invoke") will be called even when the model instance was not found. The property "ctx.instance" will be undefined in such case, hook handlers must account for this case.
This is an alternative to #315 that may have less breaking changes.
Connect to #311
@ritch please review.