Ash FrameworkAF
Ash Framework3y ago
16 replies
axdc

Not seeing policy authorization errors

I'm adding policies to my app, feeling my way to the correct modeling of my domain, and when submitting an action all I see in iex is:
[warning] Unhandled error in form submission for Panacea.Accounts.User.add_user

This error was unhandled because it did not implement the `AshPhoenix.FormData.Error` protocol.

** (Ash.Error.Forbidden.Policy) forbidden:

Panacea.Accounts.User.add_user

rather than Ash's nice verbose breakdown.

I have the config from the documentation set up:
config :ash, :policies, show_policy_breakdowns?: true

I've tried it at the top of the file, at the bottom of the file, etc, mix clean && mix compile just to be safe. Trying to figure out what I'm missing.
Was this page helpful?