From 0fb31e53cdad8a15d0ef5c833a23c963a207885b 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: Thu, 23 Dec 2021 14:00:44 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A6=AA=E7=94=BB=E9=9D=A2=E3=81=8B=E3=82=89?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=83=AB=E3=82=A2=E3=83=89=E3=83=AC=E3=82=B9?= =?UTF-8?q?=E3=81=A8=E9=9B=BB=E8=A9=B1=E7=95=AA=E5=8F=B7=E3=82=92=E9=9A=A0?= =?UTF-8?q?=E3=82=8C=E3=81=BE=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Api/ChildrenController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/Http/Controllers/Api/ChildrenController.php b/backend/app/Http/Controllers/Api/ChildrenController.php index 2f0f7546..e4fcc7d9 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -371,6 +371,8 @@ class ChildrenController extends Controller { $err = 'アクセスできません。'; if (request()->route()->action['as'] == 'cdp') { abort_if(null === session()->get('fathers') || null === ($rel = FatherRelation::where('child_id', (int)$child_id)->where('father_id', (int)session()->get('fathers')['id'])->first()), 404, $err); + unset($params->email); + unset($params->tel); } // 同じく子画面から他の親の詳細ページをアクセスすれば、404となります。