Ash FrameworkAF
Ash Frameworkโ€ข7mo agoโ€ข
21 replies
ken-kost

AshOban and Policies

I noticed that on initial project which has policies:
  policies do
    bypass AshAuthentication.Checks.AshAuthenticationInteraction do
      authorize_if always()
    end

    policy always() do
      forbid_if always()
    end
  end

if I call an action that has change run_oban_trigger(:my_trigger) with authorize?: false as an option; nothing happens regarding the oban job. Also nothing is reported.

How should I go about this? ๐Ÿค”
Solution
    bypass AshObanInteraction do
      authorize_if always()
    end
Was this page helpful?