Skip to content

Commit

Permalink
Merge pull request #897 from SpeedyD/fix/maintenance-guests-error
Browse files Browse the repository at this point in the history
fix(maintenance): Errored out on non-users during maintenance
  • Loading branch information
itinerare authored Apr 1, 2024
2 parents 432863d + 7e81c5d commit d576e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
@if (Settings::get('is_maintenance_mode'))
<div class="alert alert-secondary">
The site is currently in maintenance mode!
@if (!Auth::user()->hasPower('maintenance_access'))
@if (!Auth::check() || !Auth::user()->hasPower('maintenance_access'))
You can browse public content, but cannot make any submissions.
@endif
</div>
Expand Down

0 comments on commit d576e28

Please sign in to comment.