From d2bc70bef13230f2b0906fba05f8c1b3d44ebbb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Wed, 17 Nov 2021 21:54:35 +0900 Subject: [PATCH] ds --- backend/app/Http/Controllers/Api/ChildrenController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/Http/Controllers/Api/ChildrenController.php b/backend/app/Http/Controllers/Api/ChildrenController.php index 3fe67915..fc21e723 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -348,7 +348,7 @@ KIKI承知システムを使って「聞いてない!」「言ってない! } if (request()->route()->action['as'] == 'mdp') { - if (null === ($params->father_relations = FatherRelation::select($father_relations_select)->where('child_id', (int)$child_id)->first())) { + if (null === ($params->father_relations = FatherRelation::select($father_relations_select)->where('child_id', (int)$child_id)->where('father_id', (int)$r->father_id)->first())) { return ['status_code' => 400]; } }