RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebUsers.TCheckAccessRightsEvent Type

TCheckAccessRightsEvent is the type for event handlers that check the current user's access rights against a rights string.

Pascal
TCheckAccessRightsEvent = procedure (UserID: Variant; Rights: string; var HasRight: Boolean) of object;
C++
(UserID: Variant; Rights: string; var HasRight: Boolean) ( TCheckAccessRightsEvent)();

UserID is the user ID of the user whose rights should be checked. 

Rights is a string that represents the rights the user should have to be granted access. Typically, this value comes from the ViewRights property of a Web page information object that describes the page that the user wants to access or of an adapter that the user wants to call. 

HasRight returns true if the event handler grants the user access rights, false if the event handler denies access. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!