ISecurity.GetCurrentUserAccess

Compares the current user's roles to the roles in the specified list of permissions and returns the maximum access level the user has or the specified default access if not found.

public AccessRights GetCurrentUserAccess(IList<IPermission> permissions,
	AccessRights defaultAccess);

Return Value

The access level for the current user.

Parameters

permissions
A collection of IPermission objects.

defaultAccess
The default access level to use if no access was found.

Overloads:


See also:

Interface ISecurity