Check for $user to handle tests

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-08-20 14:47:58 +01:00
parent ae109be631
commit 35b358d336

View File

@@ -985,7 +985,7 @@ dir="{{ Helper::determineLanguageDirection() }}">
@endif
@endif
@if (($user->isSuperUser()) && (app()->environment('local')))
@if (isset($user) && ($user->isSuperUser()) && (app()->environment('local')))
<a href="{{ url('telescope') }}" class="btn btn-default btn-xs" rel="noopener">Open Telescope</a>
@endif