schrockwell / bodyguard

Simple authorization conventions for Phoenix apps

Home Page:https://hexdocs.pm/bodyguard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add macro for incorporating authorization checks directly in contexts

schrockwell opened this issue · comments

Relevant discussion here: https://elixirforum.com/t/authorizing-context-actions-where-in-each-method-or-the-controller/6676

Note: would almost certainly require updating docs to change @behaviour Bodyguard.Policy to use Bodyguard.Policy to inject the macro (should have just done that in the first place).

WIP on PR #31

Won't implement