Session.hasPrivilege Method
Checks if the account that this session is for has the specified privilege or not.
Parameters
- privilegeId
-
Type: String
The ID of the privilege to check. See dundas.Constants for the list.
- adapter
-
Type: Adapter
(optional) The adapter to further check for disabled privileges.
Optional: True
- ignoreViewPrivileges
-
Type: Boolean
(optional) If set to true, the current view privileges will be ignored.
Optional: True
Return Value
Type: Boolean
Returns true if this user has the privilege; otherwise, false.