Ensures the current API request is performed by an admin user.
Unlike browser flows, this plug returns JSON errors (no redirects).
Summary
Functions
@spec call(Plug.Conn.t(), keyword()) :: Plug.Conn.t()
Ensures the current API request is performed by an admin user.
Unlike browser flows, this plug returns JSON errors (no redirects).
@spec call(Plug.Conn.t(), keyword()) :: Plug.Conn.t()