$Domain.HasPermission
Overview¶
Boolean $Domain.HasPermission ( identity, profile, permissions )
Returns true or false value that user has permission on specified profile and permissions.
Arguments¶
Identity | String identity Identity to check permission
String profile Name or Id number of security profile.
Number permissions Permission to check
Remarks¶
- Permissions are defined as following;
| Description | Value |
|---|---|
| None | 0 |
| Read | 1 |
| Write | 2 |
| Delete | 4 |
| All | 7 |
- Permissions can be combined with bitwise OR operator like " 1 | 4 "
- If specified profile not found this function throws error.