Kernel/route middleware that builds the CASL ability for the current principal and attaches it
to the event (ability metadata), so route guards (authorize(...)) and handlers can consult
it without rebuilding it. The principal comes from event.getUser() (populated by
@stone-js/auth, or anonymous).
Kernel/route middleware that builds the CASL ability for the current principal and attaches it to the event (
abilitymetadata), so route guards (authorize(...)) and handlers can consult it without rebuilding it. The principal comes fromevent.getUser()(populated by@stone-js/auth, or anonymous).