Action References
PermissionCheckAction
PermissionCheckAction
Purpose
Check a global/service-level permission not tied to a specific object instance (e.g., canExportData, canAccessAdminPanel).
When to use it
afterCheckBasicAuth(right after role/permission bootstrap)- Before any sensitive branch in the flow
Key fields
| Field | Type | Notes |
|---|---|---|
permissionName | String | Permission to require. |
checkType | ApiCheckType | liveCheck throws immediately; storedCheck records result. |
Behavior
- With
liveCheck, failing users get an authorization error (bypass applies if they hold an absolute role). - With
storedCheck, e.g., write tothis.permission_checks['canExportData']=true/falsefor later logic.
Example
{
"id": "a210-perm-export",
"name": "requireExportPermission",
"permissionName": "canExportData",
"checkType": "liveCheck"
}
Was this page helpful?
Built with Documentation.AI
Last updated Jan 3, 2026