diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index bd00e679..0cdb35f2 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -82,7 +82,7 @@ class InvoiceController extends Controller } // user_id in booking does not match - if ($booking->user_id !== $user->id) { + if ($booking->user_id !== $user->id && $user->role !== 'admin') { return response()->json([ 'message' => 'Booking does not belongs to you.' ], 403);