RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebUserList.CheckAccessRights Method

Checks whether a specified user has a given access rights string.

Pascal
function CheckAccessRights(AUserID: Variant; ARights: string): Boolean;
C++
__fastcall Boolean CheckAccessRights(Variant AUserID, AnsiString ARights);

Call CheckAccessRights to determine whether the current end user is authorized to view Web pages or adapters whose access rights string is Rights. The end user must be logged in before CheckAccessRights can determine the user's access rights. 

UserID is the user ID of the user to check. 

Rights is the access rights string that CheckAccessRights must look for. Typically, this is the value of the ViewRights property on a Web page information object that describes the page the user wants to access or on an adapter that the user wants to call. 

 

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