cpjk / canary

:hatching_chick: Elixir authorization and resource-loading library for Plug applications.
MIT License
474 stars 51 forks source link

Added loaded resource from model id to conn.assigns #46

Closed qgadrian closed 8 years ago

qgadrian commented 8 years ago

Since might be necessary a loaded resource from the model id, I think it should be added to conn.assigns.

The problem is that, using Guardian, there is already a current_user from the jwt. But you cannot access to the requested resource if you are requesting another user.

qgadrian commented 8 years ago

I forgot to update the tests, so i'll close this PR