SelectoComponents.CapabilityGate (selecto_components v0.4.8)
Small host-owned capability gate for component-managed actions.
Components own UX and event routing, but hosts own policy truth. This helper normalizes the common resolver call shape so exports, schedules, published views, and other component writes can refuse work before side effects happen.
Link to this section Summary
Functions
Authorizes a component operation.
Link to this section Functions
Link to this function
authorize(socket, capability, operation, opts \\ [])
Authorizes a component operation.
If no resolver is assigned, the operation is allowed for backwards
compatibility. Hosts can pass :resolver, :actor, :tenant, :domain,
:target, :context, or :metadata in opts, or assign matching
:capability_* values on the socket.