|
DataContextUserIsInRole(SecurityPrincipal, String) Method
|
Determines if user is in a specific role or list of roles (comma separated).
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax function UserIsInRole(securityPrincipal, role);
View SourceParameters
- securityPrincipal SecurityPrincipal
- Principal that provides role-based security.
- role String
- Role or comma separated list of roles.
Return Value
Booleantrue if user is in
role(s); otherwise,
false.
Remarks
Set to * for any role.
See Also