Skip to content

Ash.Error.Forbidden.Policy does not implement the AshPhoenix.FormData.Error protocol #378

@Schultzer

Description

@Schultzer

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Versions

Erlang/OTP 28 [erts-16.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Elixir 1.19.5 (compiled with Erlang/OTP 28)

Operating system

macOS

Current Behavior

Currently when using AshAdmin and the ActorPlug, then policy errors are unhandled when a users does not meet the policy check.

This error was unhandled because Ash.Error.Forbidden.Policy does not implement the AshPhoenix.FormData.Error protocol

Reproduction

Use the ActorPlug and have a user fail a Policy Check

Expected Behavior

AshAdmin should handle errors gracefully and notified a user if an action is forbidden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions