summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-21 20:58:48 -0400
committerMichael <[email protected]>2017-03-21 20:58:48 -0400
commitc12309407e6ddbe2904a094d407f8724a6827ee3 (patch)
treee1c57b8be137e308c554b2115440f1533f49e78a
parent872b3fb32e592605def11e0d13a57064e096b9a7 (diff)
downloadproject-unite-c12309407e6ddbe2904a094d407f8724a6827ee3.tar.gz
project-unite-c12309407e6ddbe2904a094d407f8724a6827ee3.tar.bz2
project-unite-c12309407e6ddbe2904a094d407f8724a6827ee3.zip
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*
-rw-r--r--Project-Unite/ACL.cs2
1 files changed, 1 insertions, 1 deletions
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 });
}
}