From 98c6ad8792da738b8ed1344a040290526edbe7c7 Mon Sep 17 00:00:00 2001 From: Sens van Aert <91054402+SensvanAert@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:32:03 +0100 Subject: [PATCH] Update AnswerController.php --- code/webapp/app/Http/Controllers/Api/AnswerController.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/code/webapp/app/Http/Controllers/Api/AnswerController.php b/code/webapp/app/Http/Controllers/Api/AnswerController.php index f5e954cc..29391a0b 100644 --- a/code/webapp/app/Http/Controllers/Api/AnswerController.php +++ b/code/webapp/app/Http/Controllers/Api/AnswerController.php @@ -202,11 +202,6 @@ public function create() */ public function store(StoreAnswerRequest $request) { - if($request->user_id == null){ - $user = auth()->user(); - $id = $user->id; - $request->merge(["user_id", $id]); - } $answer = Answer::create($request->all()); return response()->json(