mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
signed in checks on nav items
This commit is contained in:
parent
6aca7404c2
commit
b3bc55deeb
@ -28,15 +28,18 @@
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item" active-controller="Home">
|
||||
<a class="nav-link" asp-controller="Home" asp-action="Index">Home</a>
|
||||
</li>
|
||||
<li class="nav-item" active-controller="Users">
|
||||
<a class="nav-link" asp-controller="Users" asp-action="Index">Users</a>
|
||||
</li>
|
||||
<li class="nav-item" active-controller="Organizations">
|
||||
<a class="nav-link" asp-controller="Organizations" asp-action="Index">Organizations</a>
|
||||
</li>
|
||||
@if(SignInManager.IsSignedIn(User))
|
||||
{
|
||||
<li class="nav-item" active-controller="Home">
|
||||
<a class="nav-link" asp-controller="Home" asp-action="Index">Home</a>
|
||||
</li>
|
||||
<li class="nav-item" active-controller="Users">
|
||||
<a class="nav-link" asp-controller="Users" asp-action="Index">Users</a>
|
||||
</li>
|
||||
<li class="nav-item" active-controller="Organizations">
|
||||
<a class="nav-link" asp-controller="Organizations" asp-action="Index">Organizations</a>
|
||||
</li>
|
||||
}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://help.bitwarden.com/hosting/" target="_blank">Docs</a>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user