Latest #ash_policy Threads Top

zac
I have a use case that, basically: Forbids if some role conditions are true for the actor, Authorizes if the actor is a team lead of th...
New
sodapopcan
The docs give this example of a policy: policy action_type([:create, :update, :destroy]) do authorize_if expr(owner_id == ^actor(:id))...
New
alove
So we have an application where users fundamentally belong to many organizations, and as such, they have different roles for each organiz...
New
moxley
I’m getting an unexpected policy access failure. Here’s the policy: policies policy action :read do authorize_if expr(is_public =...
New
rapidfsub
policies do policy action_type(:read) do forbid_if expr(type(true, :boolean)) authorize_if always() end end I thin...
New
nallwhy
Here’s the my example. I’m working with structure where a Room has_one Contract, and I want to enforce that a contract can only be crea...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

zac
I have a use case that, basically: Forbids if some role conditions are true for the actor, Authorizes if the actor is a team lead of th...
New

Last Three Year's Trending Top

alove
So we have an application where users fundamentally belong to many organizations, and as such, they have different roles for each organiz...
New
nallwhy
Here’s the my example. I’m working with structure where a Room has_one Contract, and I want to enforce that a contract can only be crea...
New
rapidfsub
policies do policy action_type(:read) do forbid_if expr(type(true, :boolean)) authorize_if always() end end I thin...
New
sodapopcan
The docs give this example of a policy: policy action_type([:create, :update, :destroy]) do authorize_if expr(owner_id == ^actor(:id))...
New
moxley
I’m getting an unexpected policy access failure. Here’s the policy: policies policy action :read do authorize_if expr(is_public =...
New

Trending Over Three Years Top

  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement