CanAccessAdminPanelProps
Defined in: packages/core/src/access/canAccessAdminPanel.ts:8
Props for canAccessAdminPanel.
Properties
Section titled “Properties”access?
Section titled “access?”
optionalaccess?:VexAccessConfig<Record<string,SubjectEntry>, readonlyAccessResource[],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.
organization?
Section titled “organization?”
optionalorganization?: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.