fix user menu

This commit is contained in:
Michael 2017-05-09 16:28:15 -04:00
parent 83c264a429
commit b946c99fa6

View file

@ -23,15 +23,15 @@
<li><a href="@Url.Action("ViewProfile", "Profiles", new { id = ACL.UserNameRaw(User.Identity.GetUserId()) })"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
<li class="divider"></li>
<li class="dropdown-header">Settings</li>
@if(ACL.Granted(User.Identity.Name, "CanAccessAdminCP"))
@if((bool)User.Identity?.IsAdmin())
{
<li><a href="@Url.Action("Index", "Admin")"><span class="glyphicon glyphicon-cog"></span> Admin CP</a></li>
}
@if (ACL.Granted(User.Identity.Name, "CanAccessModCP"))
@if ((bool)User.Identity?.IsModerator())
{
<li><a href="@Url.Action("Index", "Moderator")"><span class="glyphicon glyphicon-warning-sign"></span> Mod CP</a></li>
}
@if (ACL.Granted(User.Identity.Name, "CanAccessDevCP"))
@if ((bool)User.Identity?.IsDeveloper())
{
<li><a href="@Url.Action("Index", "Developer")"><span class="glyphicon glyphicon-star"></span> Developer CP</a></li>
}