Skip to content

Commit 35b358d

Browse files
committed
Check for $user to handle tests
Signed-off-by: snipe <[email protected]>
1 parent ae109be commit 35b358d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/layouts/default.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@
985985
@endif
986986
@endif
987987

988-
@if (($user->isSuperUser()) && (app()->environment('local')))
988+
@if (isset($user) && ($user->isSuperUser()) && (app()->environment('local')))
989989
<a href="{{ url('telescope') }}" class="btn btn-default btn-xs" rel="noopener">Open Telescope</a>
990990
@endif
991991

0 commit comments

Comments
 (0)