GreenAsh.Actor (GreenAsh v0.1.1)

Copy Markdown View Source

Management of the console's "actor": the Ash record on whose behalf actions are executed (to exercise the policies). Stored in the HTTP session (a LiveView cannot write the session via the socket: see GreenAsh.ActorController) and re-threaded through all Ash calls.

Summary

Functions

Resolves the actor from the session (among domains), or nil.

Short label of the actor for the header (e.g. "Account:1b78…").

Functions

from_session(session, domains)

Resolves the actor from the session (among domains), or nil.

label(record)

Short label of the actor for the header (e.g. "Account:1b78…").

session_key()