hide token generation button for non-logged-in users
This commit is contained in:
parent
8ae6561f4e
commit
a4923d03f9
@ -140,12 +140,13 @@
|
||||
<span class="name">@ViewBag.Localization["WEBFRONT_ACTION_RECENT_CLIENTS"]</span>
|
||||
</a>
|
||||
</has-permission>
|
||||
|
||||
@if (ViewBag.Authorized)
|
||||
{
|
||||
<a class="sidebar-link profile-action" href="#actionModal" data-action="GenerateLoginToken" data-response-duration="30000" title="@ViewBag.Localization["WEBFRONT_ACTION_TOKEN"]">
|
||||
<i class="oi oi-key mr-5"></i>
|
||||
<span class="name">@ViewBag.Localization["WEBFRONT_ACTION_TOKEN"]</span>
|
||||
</a>
|
||||
@if (ViewBag.Authorized)
|
||||
{
|
||||
<a asp-controller="Account" asp-action="Logout" class="sidebar-link">
|
||||
<i class="oi oi-account-logout mr-5"></i>
|
||||
<span class="name">@ViewBag.Localization["WEBFRONT_NAV_LOGOUT"]</span>
|
||||
|
Loading…
Reference in New Issue
Block a user