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

  • -1 - all projects
batchTypeId int

Batch ID

  • -1 - all batch types
  • 0 - batch by default
roleType int User role type.
For possible values, see User role types.

Returned value

Type Description
bool
  • "true" if the permission was granted
  • otherwise "false" is returned

25.05.2023 7:55:00

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.