JmgGroupApprove::checkAutorized Method
Checks whether a user can view worker registrations that belong to the specified approval group.
Syntax
client server public static boolean checkAutorized(
JmgGroupApproveId approveId,
boolean throwError,
FormRun _caller)
Run On
Called
Parameters
- approveId
Type: JmgGroupApproveId Extended Data Type
The ID of the approval group.
- throwError
Type: boolean
true if an error should be thrown if the user is not authorized correctly; otherwise, false.
- _caller
Type: FormRun Class
A reference to the calling form.
Return Value
Type: boolean
true if the user is authorized correctly; otherwise, false.
Exceptions
Exception | Condition |
---|---|
Error | Throws an error, if the user is not authorized correctly. |
Remarks
If a password is set on the approval group, then the user will be prompted for a password.