mirror of
https://github.com/ash-project/ash.git
synced 2024-09-21 14:03:04 +12:00
dc73c3a3d5
Policy groups allow you to group policies by shared conditions. This can help simplify the mental overhead of large sets of policies. For example: ```elixir policies do policy_group actor_attribute_equals(:role, :owner) do policy action_type(:read) do authorize_if expr(owner_id == ^actor(:id)) end policy action_type([:create, :update, :destroy]) do forbid_if authorize_if expr(owner_id == ^actor(:id)) end end end ``` |
||
---|---|---|
.. | ||
calculations | ||
context/changes | ||
always.ex | ||
car.ex | ||
car_user.ex | ||
context.ex | ||
foo.ex | ||
organization.ex | ||
post.ex | ||
trip.ex | ||
tweet.ex | ||
two_filters.ex | ||
user.ex |