Primitive
permission.assertCurrentUserHas
BETAShort name: assertCurrentUserHas
Version: 1.0.0
Advisory permission check for the current user based on a license atom. Returns allowed=false instead of throwing for negative checks.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| organizationAtomId | objectId | false | Optional organization scope for selecting a license atom. |
| permission | string | true | Permission key to evaluate. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| allowed | boolean | false | True when the selected license grants the permission. |
| licenseAtomId | string | false | License atom id used for evaluation when one was found. |
| reason | string | false | Reason for denied checks. Advisory-only: caller decides how to branch. |