Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
fix: rendering navigation throws exception for anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenRedd committed Jun 30, 2015
1 parent d736839 commit 2113d4f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions TicketDesk/TicketDesk.Web.Client/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,20 @@
</ul>
</div>
</div>
<div class="container-fluid navbar-default" style="border-top: 1px solid #e7e7e7; padding: 7px;">
<div class="form form-inline pull-left-xs pull-right-sm">
@{ Html.RenderAction("ProjectMenu", "Navigation"); }
<div class="form-group hidden-xs">
@Html.Partial("_QuickSearch")
@if (User.Identity.IsAuthenticated)
{
<div class="container-fluid navbar-default" style="border-top: 1px solid #e7e7e7; padding: 7px;">
<div class="form form-inline pull-left-xs pull-right-sm">
@{ Html.RenderAction("ProjectMenu", "Navigation"); }
<div class="form-group hidden-xs">
@Html.Partial("_QuickSearch")
</div>
<span class="hidden-xs">
@Html.Partial("_AdminMenu")
</span>
</div>
<span class="hidden-xs">
@Html.Partial("_AdminMenu")
</span>
</div>
</div>
}
</nav>
<div class="body-content">
@RenderBody()
Expand Down

0 comments on commit 2113d4f

Please sign in to comment.