ISecurity.IsCurrentUserInRole

Compares the current user's roles to the roles in the specified list and returns true if the user is in one of the roles.

public bool IsCurrentUserInRole(IList<IRole> roles);

Return Value

True if the user is an administrator, there are no roles in the list, or the user is in one of the roles.

Parameters

roles
A list of IRole objects.


See also:

Interface ISecurity

© Stonefield Software Inc., 2019 • Updated: 02/12/16
Comment or report problem with topic