Skip to content

CanAccessAdminPanelProps

Defined in: packages/core/src/access/canAccessAdminPanel.ts:8

Props for canAccessAdminPanel.

optional access?: VexAccessConfig<Record<string, SubjectEntry>, readonly AccessResource[], string, string | undefined, Partial<Record<string, CustomActionsInput>>>

Defined in: packages/core/src/access/canAccessAdminPanel.ts:14

The resolved config from defineAccess(). undefined means RBAC is not configured, which grants access — the same escape hatch hasPermission uses, so a project without an access matrix keeps working.


optional organization?: Record<string, unknown>

Defined in: packages/core/src/access/canAccessAdminPanel.ts:21

The caller’s active organization, forwarded to permission callbacks.


user: Record<string, unknown> | null

Defined in: packages/core/src/access/canAccessAdminPanel.ts:19

The authenticated caller. null/{} (unauthenticated) resolves to an empty role list and therefore denies.