system.perspective.isAuthorized
This function is used in Python Scripting.
Description​
Checks if the user in the current Session is authorized against a target collection of security levels.
Syntax​
system.perspective.isAuthorized(isAllOf, securityLevels, [sessionID])
Parameters​
| Type | Parameter | Description |
|---|---|---|
| Boolean | isAllOf | True if the current user must have all of the given security levels to be authorized. False if the current user must have at least one of the given security levels to be authorized. |
| List[String] | securityLevels | An array of string paths to a security level node in the form of "Path/To/Node". Each level in the tree is delimited by a forward slash character. The public node is never a part of the path. |
| String | sessionId | Identifier of the Session to target. If omitted, the current Session will be used automatically. [optional] |