Merge branch 'dev' into features/mails

This commit is contained in:
2026-03-18 10:58:06 +01:00
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -213,11 +213,6 @@ class TasksController extends Controller
return response()->json(["message" => "Task not found"], 404);
}
if (!$task->event) {
Log::error("Relation 'event' manquante pour la tâche ID: " . $task->id);
return response()->json(["message" => "Task is missing its parent event"], 422);
}
$isAssigned = $task->users()->where('user_id', $id)->exists();
if (!$isAssigned) {
return response()->json(["message" => "User is not assigned to this task"], 400);
+1 -1
View File
@@ -19,7 +19,7 @@ return [
'allowed_methods' => ['*'],
'allowed_origins' => env('DEV', 0) == 1 ? ['http://localhost:5173'] : ['http://localhost'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],