Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs authored Oct 16, 2024
1 parent f161094 commit 82c90eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function share(Request $request): array
return [
...parent::share($request),
'auth' => [
'user' => $request->user()->append(['image_url']),
'user' => $request->user()?->append(['image_url']),
'can' => [
'access_admin' => $request->user()?->can('access-admin') ?? false,
],
Expand Down

0 comments on commit 82c90eb

Please sign in to comment.