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 }); } }