Location: Symbol Reference > Classes > TJwSecurityAccessControlList Class > TJwSecurityAccessControlList Methods > GetEffectiveRights Method > TJwSecurityAccessControlList.GetEffectiveRights Method (TJwSecurityId)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityAccessControlList.GetEffectiveRights Method (TJwSecurityId)
Pascal
function GetEffectiveRights(const User: TJwSecurityId): TJwAccessMask; overload;
Parameters 
Description 
const User: TJwSecurityId 
defines a SecurityID that is used to get effective access rights. This parameter can be nil to use the current user of thread or process instead.  

GetEffectiveRights returns the rights which are granted to User

GetEffectiveRights computes the effective access rights of a user and the ACL. A better and more secure way to check access rights is to use AccessCheck with MAXIMUM_ALLOWED desired access rights. 

Known bug in internal Windows call: This function does/may not work with inherited access control elements and also can fail on some combination with deny entries! 

 

Exceptions 
Description 
will be raised if a call to GetEffectiveRightsFromAcl failed 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!