clean up user profile links

Also... totally not a major security flaw I just fixed. Tom Scott would
butcher me if he saw that. Oh god... Source control... What goes in
git... stays in git... *runs from the red-shirted man*
This commit is contained in:
Michael 2017-03-21 20:58:48 -04:00
parent 872b3fb32e
commit c12309407e

View file

@ -30,7 +30,7 @@ namespace Project_Unite
userRoles.Add(db.Roles.FirstOrDefault(r => r.Id == usrRole.RoleId) as Role); userRoles.Add(db.Roles.FirstOrDefault(r => r.Id == usrRole.RoleId) as Role);
} }
var userRole = userRoles.OrderByDescending(m => m.Priority).FirstOrDefault(); var userRole = userRoles.OrderByDescending(m => m.Priority).FirstOrDefault();
return hpr.ActionLink(usr.DisplayName, "ViewProfile", "Profiles", new { name = usr.UserName }, new { style = userRole == null ? "color:white;" : @"color: " + userRole.ColorHex }); return hpr.ActionLink(usr.DisplayName, "ViewProfile", "Profiles", new { id = usr.DisplayName }, new { style = userRole == null ? "color:white;" : @"color: " + userRole.ColorHex });
} }
} }