From 3cf207b350d34ab5609603ccada4ecc8daee99d8 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Sat, 27 Feb 2021 08:10:23 -0500 Subject: [PATCH] Fix owner attribute --- app/Http/Middleware/HandleInertiaRequests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index fd4f39d..6cd745b 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -44,7 +44,7 @@ class HandleInertiaRequests extends Middleware 'first_name' => $request->user()->first_name, 'last_name' => $request->user()->last_name, 'email' => $request->user()->email, - 'role' => $request->user()->role, + 'owner' => $request->user()->owner, 'account' => [ 'id' => $request->user()->account->id, 'name' => $request->user()->account->name,