Hi, I recently wrote this a some policies where I thought having a “not” operator would be useful. For example
policies do
policy action_type(:create) do
authorize_if always()
end
policy not action_type(:create) do
authorize_if relates_to_actor_via(:partner)
end
end
I tried searching the docs, but the best solution I could come up with is
policies do
policy action_type(:create) do
authorize_if always()
end
bypass action_type(:create) do
authorize_if always()
end
policy always() do
authorize_if relates_to_actor_via(:partner)
end
end
Is this a deliberate design choice, or just something that hasn’t been explored yet?






















