User can add/edit flights
This commit is contained in:
@@ -31,6 +31,7 @@ class FlightProfileController extends Controller
|
||||
|
||||
return Inertia::render('FlightProfile', [
|
||||
'user' => $user,
|
||||
'canEdit' => auth()->check() && auth()->id() === $user->id,
|
||||
'flights' => UserFlightResource::collection($flights)->resolve(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user