mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
fix user menu
This commit is contained in:
parent
83c264a429
commit
b946c99fa6
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue