User.IsInRole Method

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

IsInRole(string)

Determines whether the user belongs to the specified role.

public bool IsInRole(string role)

Parameters

role
string

The name of the role for which to check membership.

Returns

bool

true if the current user is a member of the specified role, otherwise false.