cpjk / canary

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

Introduces authorize_controller functionality #61

Closed ghatighorias closed 7 years ago

ghatighorias commented 7 years ago

send calling controller to the canada.can? function instead of model

This way a user can be authorized based on the action And the controller the action is called from

cpjk commented 7 years ago

LGTM! Thanks for the PR!

thumbs_up

gsempe commented 6 years ago

My question is related to this PR. I don't find any canary_controller guide/documentation/best practice on how to fill this key. Can you, please, share ideas about that?