RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseEndUserAdapter.DoOnHasRights Method

Determines whether the user has view rights.

Pascal
function DoOnHasRights(AEvent: TEndUserRightsEvent; const ARights: string): Boolean; virtual;
C++
virtual __fastcall Boolean DoOnHasRights(TEndUserRightsEvent AEvent, const AnsiString ARights);

The DoOnHasRights function is called from ImplHasViewRights. It matches the given access rights to the rights in the user list and returns true if the user has view rights. 

AEvent is the event handler that DoOnHasRights should call first to check access rights. 

ARights is a string that represents the rights the user needs. 

 

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