This function returns TRUE if the user has access to a named account at a specific privilege level. The privilege is a one-character representation of the access level, as follows:
R: Read. Specified as 1.
W: Write. Specified as 2.
D: Delete. Specified as 4.
A: Administration. Specified as 8.
Takes two parameters:
The first is the account name.
The second is the access level to be checked.
Returns TRUE if the current user has the specified access.
Returns FALSE if the user does not have the specified access.
Evaluates whether the user has Read access to the specified account:
Evaluates whether the user has Read and Write access to the specified account: