Registering
Runs before UCR registers a custom role. Use IsAllowed false to stop the registration.
Start a script section
!-- OnUCR Registering
-- require *evRole $evIsAllowed
# Add your instructions here
- Group: CustomRoleEvents
- Cancellable: Yes
- Event data:
CustomRoleRegisteringEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
*evRole | reference to UCRRole object | The UCR role involved in this event. |
$evIsAllowed | bool value | Whether UCR will continue the action. |