HasPermission¶
Returns a boolean value that indicates whether a user has permission for a specified security profile and permissions.
1 |
|
Parameters¶
any identity
The identity to check.
string profile
The ID or name of the security profile.
number permissions
The permission to check.
Returns¶
true
if the user has permission; otherwise, false
.
Remarks¶
Permissions are bitwise values. You can use bitwise operators to combine permissions.
By default, the following permissions are defined: Read (1), Execute (16), Write (256), Delete (4096), All (65535).
Example¶
1 2 |
|