hide token generation button for non-logged-in users

This commit is contained in:
RaidMax 2022-06-15 19:39:53 -05:00
parent 8ae6561f4e
commit a4923d03f9

View File

@ -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>