Skip to content

Commit 0220530

Browse files
committed
Update maintenance.blade.php
1 parent 99ae84d commit 0220530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/maintenance.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<h1 style="font-size: 300%;"><i class="fa-solid fa-screwdriver-wrench"></i> Maintenance Mode <i class="fa-solid fa-screwdriver-wrench"></i></h1>
9494
<h2>We are performing scheduled site maintenance at this time.</h2>
9595
<h3>Please check back with us later.</h3>
96-
@if(auth()->user()->role == 'admin')
96+
@if(auth()->user() && auth()->user()->role == 'admin')
9797
<br><center><i>Admin options:</i></center>
9898
<a href="{{url('dashboard')}}">Dashboard</a> | <a href="{{url('?maintenance=off')}}" onclick="return confirm('You are about to disable Maintenance Mode. Are you sure?');">Turn off</a>
9999
@endif

0 commit comments

Comments
 (0)