Authorization scope loaded from PermitEx role assignments.
Use this struct directly or merge its roles and permissions into your
application's own Phoenix scope.
Summary
Functions
Builds a %PermitEx.Scope{} for the user and optional context.
Puts a value into the scope's assigns map.
Merges PermitEx authorization data into an existing map or struct.
Reloads roles and permissions for an existing scope, preserving assigns.
Types
Functions
Builds a %PermitEx.Scope{} for the user and optional context.
Accepts ids, structs with an :id field, or maps with an "id" key.
Puts a value into the scope's assigns map.
Works with %PermitEx.Scope{} and plain maps that already have :assigns.
Merges PermitEx authorization data into an existing map or struct.
Reloads roles and permissions for an existing scope, preserving assigns.
Useful after role changes in long-lived LiveViews.