
DM API METHODS AND PROPERTIES 257
RevokeRight
RevokeRight
Use this method to turn off a named bit in the supplied rights mask.
Syntax
PCDDocObject.RevokeRight( strRightName, _
intRightsIn )
Parameters
Usage
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). Sending an integer value of 2 would remove the
user’s rights to edit profile forms.
The following Profile rights are supported:
strRightName The name of the right to turn off.
intRightsIn The rights mask in which you want to turn off the
named right.
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
16 %PR_CONTENT_EDIT Edit Document Content
32 %PRCONTENT_COPY Copy Document Content
64 %PR_DELETE Delete Document
128 %PR_ACCESS_CONTROL Control Access to Document
256 %RIGHT8 Assign to File
512 %RIGHT9 View Only Published
Comentários a estes Manuais