AifDocumentLog.validateUser Method
Validates the current user against the expected access rights.
Syntax
public boolean validateUser(AccessRight expectedAccessRight)
Run On
Called
Parameters
- expectedAccessRight
Type: AccessRight Enumeration
The expected access rights.
Return Value
Type: boolean
true if validation succeeds; otherwise, false.
Remarks
System Admin and IT Admin roles should return true; otherwise, we check the current record's user IDs to match the current user ID.