From 58729c0b3a961f71f7dca9e0cb136245cd249173 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 24 Jan 2015 17:32:14 +0100 Subject: [PATCH] better info on profile --- web/Views/Account/Profile.aspx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/Views/Account/Profile.aspx b/web/Views/Account/Profile.aspx index da4064cf..781de247 100644 --- a/web/Views/Account/Profile.aspx +++ b/web/Views/Account/Profile.aspx @@ -133,10 +133,10 @@ Avatar : "<%=Model.avatar%>" - <% if (Roles.IsUserInRole("Admin")) { %> - Admin, - Bankable:<%= Model.IsBankable %>, Billable:<%=Model.IsBillable%> -<% } %> + <% if (Roles.IsUserInRole((string)ViewData ["UserName"],"Admin")) { %> + This user is Admin. + <% } %> + HasBankAccount:<%= Model.HasBankAccount %>, IsBillable:<%=Model.IsBillable%> <%= Html.ActionLink("Changer de mot de passe","ChangePassword", "Account",null, new { @class="actionlink" })%> <%= Html.ActionLink("Désincription","Unregister", "Account",null, new { @class="actionlink" })%>