ftos.context.setAdminMode
IMPORTANT!
Starting with v24.3.0, this is renamed from setAdminMode to ftos.context.setAdminMode.
Starting with v24.3.0, this is renamed from setAdminMode to ftos.context.setAdminMode.
Sets or unsets the context of the current transaction as administrator. This allows the workflow to temporarily affect entities that are not included in the security role. Also see ftos.context.getAdminMode.
This is a method suitable for all business service components.
Syntax
function ftos.context.setAdminMode(isAdminMode: boolean): void
| Parameter | Description |
|---|---|
ftos.context.setAdminMode
|
|
Examples
In this example, we set the transaction context to administrator.
ftos.context.setAdminMode(True);
In this example, we unset the administrator transaction context.
ftos.context.setAdminMode(False);