mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-04-20 00:10:24 +00:00
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:
parent
872b3fb32e
commit
c12309407e
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue