Skip to content
Corex

CurrentUserAccessRequests

Corex\Config\Access\CurrentUserAccessRequests · class · Config layer

The signed-in user’s own access-request state, for the denied surface (spec 079, FR-004/005/006). The user ID is taken from the session here and nowhere else, so no caller can ask about somebody else’s requests by passing an ID — the surface renders for the person looking at it.

__construct(AccessRequestStore $requests, AccessRequestFlash $flash)

Section titled “__construct(AccessRequestStore $requests, AccessRequestFlash $flash)”

pendingForCurrentUser(string $abilityKey): ?PendingAccessRequest

Section titled “pendingForCurrentUser(string $abilityKey): ?PendingAccessRequest”