AjaxItemSelect.Controllers.UserAccount.HasRoleClaim C# (CSharp) Method

HasRoleClaim() public method

public HasRoleClaim ( string value ) : bool
value string
return bool
        public bool HasRoleClaim(string value)
        {
            if (!IsAuthenticated) { return false; }
            return Principal.HasClaim(ClaimTypes.Role, value) ? true : false;
        }