This project is read-only.

Switch profile enabled for all users?

Topics: Controls
Jul 17, 2008 at 10:14 PM
  /admin/Pages/Profiles.aspx has a drop down for switching between editing the profiles of the various users.  For me this control is showing for the roles Administrators and Editors.  Am I missing something or this control only supposed to be enabled for Administrators?  The code is as follows for the opening tag of the control is,

<asp:Panel ID="pnlAdmin" runat="server" Visible='<%# User.IsInRole("Administrator") %>'>

from what I can tell <%# User.IsInRole("Administrator") %> doesn't evaluate to false for Editors.  <%= User.IsInRole("Administrator") %> for example does but <%=...%> is not allowed inside of controls.  Anyone else have this issue?


And thanks for the great blog!

Jul 19, 2008 at 3:35 PM
this is fixed in the latest source code