public override string[] GetRolesForUser(string username) { IUsersNoteAuthuserBLL authuser = new UsersNoteAuthuserLogic(); string role = authuser.GetUserRole(username); return(role.Split(':')); }
public override bool IsUserInRole(string username, string roleName) { IUsersNoteAuthuserBLL authuser = new UsersNoteAuthuserLogic(); return(authuser.GetUserRole(username) == roleName); }