summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Shared/_LoginPartial.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-09 16:28:15 -0400
committerMichael <[email protected]>2017-05-09 16:28:15 -0400
commitb946c99fa65c4af18812d4f6bb41837ecc3b0c98 (patch)
treef2198149e298af01bbcc59e0b3b411950c734ec8 /Project-Unite/Views/Shared/_LoginPartial.cshtml
parent83c264a429c039c7bf2d36f2decf77dd05548e8a (diff)
downloadproject-unite-b946c99fa65c4af18812d4f6bb41837ecc3b0c98.tar.gz
project-unite-b946c99fa65c4af18812d4f6bb41837ecc3b0c98.tar.bz2
project-unite-b946c99fa65c4af18812d4f6bb41837ecc3b0c98.zip
fix user menu
Diffstat (limited to 'Project-Unite/Views/Shared/_LoginPartial.cshtml')
-rw-r--r--Project-Unite/Views/Shared/_LoginPartial.cshtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/Project-Unite/Views/Shared/_LoginPartial.cshtml b/Project-Unite/Views/Shared/_LoginPartial.cshtml
index d1ba671..4acf09b 100644
--- a/Project-Unite/Views/Shared/_LoginPartial.cshtml
+++ b/Project-Unite/Views/Shared/_LoginPartial.cshtml
@@ -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>
}