Skip to content

Commit f4c5da5

Browse files
committed
Fixed auth error when user isn't logged in
1 parent 8a7f71e commit f4c5da5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/backend/layouts/default.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
</div>
191191
</header>
192192
<!-- end navbar -->
193-
193+
@if (Sentry::check())
194194
@if(Sentry::getUser()->hasAccess('admin'))
195195
<!-- sidebar -->
196196
<div id="sidebar-nav">
@@ -236,6 +236,7 @@
236236
</div>
237237
<!-- end sidebar -->
238238
@endif
239+
@endif
239240

240241

241242
<!-- main container -->

0 commit comments

Comments
 (0)