fix: fix 500 on unauth

This commit is contained in:
mrilyew 2025-01-07 11:29:05 +03:00
parent 3cd803ef31
commit bbcb94515d

View file

@ -45,7 +45,7 @@
{include headIncludes} {include headIncludes}
{/ifset} {/ifset}
</head> </head>
<body data-themepack="{$thisUser->getStyle()}"> <body {if isset($thisUser)}data-themepack="{$thisUser->getStyle()}"{/if}>
<div id="sudo-banner" n:if="isset($thisUser) && $userTainted"> <div id="sudo-banner" n:if="isset($thisUser) && $userTainted">
<p> <p>
{_you_entered_as} <b>{$thisUser->getCanonicalName()}</b>. {_please_rights} {_you_entered_as} <b>{$thisUser->getCanonicalName()}</b>. {_please_rights}