From c12309407e6ddbe2904a094d407f8724a6827ee3 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Mar 2017 20:58:48 -0400 Subject: [PATCH] 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* --- Project-Unite/ACL.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Unite/ACL.cs b/Project-Unite/ACL.cs index df57671..c0a0894 100644 --- a/Project-Unite/ACL.cs +++ b/Project-Unite/ACL.cs @@ -30,7 +30,7 @@ namespace Project_Unite userRoles.Add(db.Roles.FirstOrDefault(r => r.Id == usrRole.RoleId) as Role); } 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 }); } }