What's Changed
- Fix empty has_many associations incorrectly returning true by @vincentvanbush in https://github.com/curiosum-dev/permit/pull/53
Full Changelog: https://github.com/curiosum-dev/permit/compare/v0.3.2...v0.3.3
Unclaimed project
Are you a maintainer of permit? Claim this project to take control of your public changelog and roadmap.
Changelog
An uniform authorization library for Elixir. Supports Plug and Phoenix LiveView, aims for much more.
Full Changelog: https://github.com/curiosum-dev/permit/compare/v0.3.2...v0.3.3
[Breaking] Change order of args in Permit.verify_record/3 and add delegation as do?/3 when doing use Permit.
This way, permisisons to perform a dynamically computed action can be checked like this:
action = :read
can(user) |> do?(action, %Item{id: 1})
instead of the previously required, rather clumsy, and undocumented notation: