Hasright, Hasright 24 – Kofax DM API User Manual
Page 260

240 C
HAPTER
4
HasRight
HasRight
Use this method to determine if the specified user or group rights mask
permits the right you specify.
Syntax
PCDDocObject.HasRight( strRightName, intRightsIn
)
Parameters
Returns
Returns
TRUE
if the named right is available to the user.
Usage
It is important that you use late binding when creating a
object that will use the
HasRight
method. Using early
binding to create the PCDDocObject can result in the
HasRight
method generating an error.
The Profile and QuickSearch rights are the lower 16 bits of a 32-bit
integer. Bit settings are OR’ed together. For example, a user with rights
to view profiles (binary
0000000000000001
) and edit profiles (binary
0000000000000010
) would have a rights setting of 3 (binary
0000000000000011
).
The following Profile rights are supported:
strRightName
A string value that identifies the name of the right.
intRightsIn
The rights mask in which you want to identify
whether the right is available to the user.
Value
Token
Description
1
%PR_VIEW
View Profile
2
%PR_EDIT
Edit Profile
4
%PR_CONTENT_VIEW
View Document Content
8
%PR_CONTENT_RETRIEVE Retrieve Document Content