Date:
September 1, 2004
Applies to:
Secure Access 2.1 and any later version
Summary:
I抳e already got an ARUserTicket, and want to check against the permissions matrix ?do I still need to use the ARHelper object, or is there a way of doing this within the User/UserTicket object?
Solution:
It is possible to use ARUserTicket.IsMemberAll() method that returns true if user is member of the provided object. It uses the pre-cached data that are loaded from the database when the ARUserTicket object is created. The method includes all valid memberships, including nested (transitive) ones.
However, for resource-based authorization (i.e. using permission matrix) it is necessary to use method ARHelper.IsAuthorized().
[Visual Basic] Overloads Public Function IsMemberAll(Integer) As Boolean
[C#] public bool IsMemberAll(int);
[JScript] public function IsMemberAll(int) : boolean
Returns true if user is member of the provided object. It uses the pre-cached data that are loaded from the database when the ARUserTicket object is created. The method includes all valid memberships, including nested (transitive) ones.
[Visual Basic] Overloads Public Function IsMemberAll(String) As Boolean
[C#] public bool IsMemberAll(string);
[JScript] public function IsMemberAll(String) : boolean
For details please refer to the Secure Access Classes Documentation.