HasPermission
What it does
Checks whether a user or a group has the permission to use the specified role in the specified project.
Definition
bool HasPermission( int principalId, int projectId, int batchTypeId, int roleType );
Parameters
| Name | Type | Description |
| principalId | int | User or group ID |
| projectId | int |
Project ID
|
| batchTypeId | int |
Batch ID
|
| roleType | int | User role type. For possible values, see User role types. |
Returned value
| Type | Description |
| bool |
|
12.04.2024 18:16:02