We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72371d7 commit fdb268dCopy full SHA for fdb268d
resources/views/pages-legacy/gameInfo.blade.php
@@ -491,9 +491,9 @@ function resize() {
491
@endif
492
493
@if ($isFullyFeaturedGame)
494
- @if ($userModel->can('update', $gameModel))
+ @if ($userModel && $userModel->can('update', $gameModel))
495
<a class="btn mb-1" href="{{ route('filament.admin.resources.games.edit', ['record' => $gameModel->id]) }}">Manage</a>
496
- @elseif ($userModel->can('manage', $gameModel))
+ @elseif ($userModel && $userModel->can('manage', $gameModel))
497
<a class="btn mb-1" href="{{ route('filament.admin.resources.games.view', ['record' => $gameModel->id]) }}">Manage</a>
498
499
0 commit comments