Sekisho.Denied exception (Sekisho v0.1.0-dev)

Copy Markdown View Source

A permission refused: what authorize/3 returns and authorize!/3 raises.

Phoenix answers it with a 403 (plug_status), or a 404 with deny_as: :not_found in use Sekisho, so that a record's existence is not told.

Summary

Types

t()

@type t() :: %Sekisho.Denied{
  __exception__: term(),
  permission: atom(),
  plug_status: 403 | 404,
  resource: struct() | module()
}