public static List<UserRole> GetRoleListRestricted()
{
using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
if (!SecurityData.IsAdmin) {
return (from r in _db.membership_Roles
where r.Name != SecurityData.CMSGroup_Users && r.Name != SecurityData.CMSGroup_Admins
orderby r.Name
select new UserRole(r)).ToList();
} else {
return (from r in _db.membership_Roles
where r.Name != SecurityData.CMSGroup_Users
orderby r.Name
select new UserRole(r)).ToList();
}
}
}