Oracle® Fusion Middleware Idoc Script Reference Guide 11g Release 1 (11.1.1) Part Number E10726-01 |
|
|
View PDF |
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.
Type and Usage
Parameters
Takes two parameters:
The first is the account name.
The second is the access level to be checked.
Output
Returns TRUE if the current user has the specified access.
Returns FALSE if the user does not have the specified access.
Example
Evaluates whether the user has Read access to the specified account:
<$userHasAccessToAccount("profile_account", 1)$>
Evaluates whether the user has Read and Write access to the specified account:
<$userHasAccessToAccount("profile_account", 3)$>