RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebUsers.TCheckAccessRightsHandledEvent Type

TCheckAccessRightsHandledEvent is the type for event handlers that can potentially replace the built-in checking of a user's rights against an access string.

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

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. 

Handled returns true if the event handler has checked the end user's rights, false if the HasRight parameter has no meaning on exit. If Handled returns false, the Web user list continues with its default processing, such as checking of the end user's rights or denying access. If Handled returns true, the Web user list skips this step. 

 

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