CheckRight Method

Applies To   Example  

Returns True if the right is permitted for the current user, and False if it is not.

Syntax
Function CheckRight(
    RightID As Long) As Boolean
Parameters

RightID

ID of the right to be checked.

Remarks

Using this method is the easiest way to determine the current user's net rights. This method is particularly useful when you are working with inheritance. For example, if the right to schedule a report has been explicitly granted to the current user, but that user is also set to inherit rights from a parent folder on which the right has been denied, the user will not be permitted to schedule the report. See the Crystal Enterprise Administrator's Guide for a detailed explanation of the algorithm that the APS uses to determine the principal's net rights to an object.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com