API / Minn\Http / Access

Access enum

Minn\Http\Access · public/minn/src/Minn/Http/Access.php · 17 lines

Who a route is for. The six answers every route gives, so the authorization surface of the engine reads as a list of these.

Uses 1

Cases

casePublic

Anyone, signed in or not; the caller is never resolved.

caseSignedIn

A signed-in caller, whoever they are.

caseCap

A signed-in caller holding the named capability (and every extra one).

caseFloor

The Minn Admin floor: signed in, may edit posts, and holds every extra capability named; refused as rest_forbidden.

caseOwn

A signed-in caller holding a capability on the object a pattern capture names.

caseType

Any caller, on a route whose {base} capture must name a declared post type; the route declines otherwise and the handler judges the rest.

caseTaxonomy

Any caller, on a route whose {base} capture must name a taxonomy plugin code registered to show in REST; the route declines otherwise and the handler judges the rest.