nicolaiarocci/eve — pull request #275 by boosh (2014-03-08 19:19:47+00:00)
Title: Modify lookup

I needed this feature. Use case is sending messages between 2 users, I apply a lookup to restrict a GET to the `messages` endpoint to only return those where the authenticated user is either the sender or recipient.

As noted in the commit message, the feature is incomplete. Are you happy with the approach? If so, I'll update the other HTTP methods that use a lookup and add tests.

Please see the notes in the code. I'm assuming the `sub_resource_lookup` field is only ever provided by Eve, and can never be insecure data supplied by clients. Please confirm that's a valid assumption.

Thanks