SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

permission.assertCurrentUserHas

BETA

Short 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 library

Inputs

KeyTypeRequiredDescription
organizationAtomIdobjectIdfalseOptional organization scope for selecting a license atom.
permissionstringtruePermission key to evaluate.

Outputs

KeyTypeRequiredDescription
allowedbooleanfalseTrue when the selected license grants the permission.
licenseAtomIdstringfalseLicense atom id used for evaluation when one was found.
reasonstringfalseReason for denied checks. Advisory-only: caller decides how to branch.