From 397cd6c87fd3ce323ca53b815922a2983050f398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hagjoon=28=EC=9D=B4=ED=95=99=EC=A4=80=29?= Date: Tue, 11 Oct 2022 17:25:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=ED=96=89=EA=B3=84=ED=9A=8D=EC=84=9C?= =?UTF-8?q?=20-=20super=20=EC=9C=A0=EC=A0=80=EC=9D=BC=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EA=B0=80=EB=8A=A5=20=ED=95=98=EA=B2=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/basis/flight/plan/FlightPlanForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/basis/flight/plan/FlightPlanForm.js b/src/components/basis/flight/plan/FlightPlanForm.js index bfd0359..e7f9a5e 100644 --- a/src/components/basis/flight/plan/FlightPlanForm.js +++ b/src/components/basis/flight/plan/FlightPlanForm.js @@ -46,7 +46,7 @@ const FlightPlanForm = ({ // const schema = yup.object().shape({}); useEffect(() => { - if (detail?.cstmrSno == user?.cstmrSno) { + if (detail?.cstmrSno == user?.cstmrSno || user.authId === 'SUPER') { setTest(false); } else { setTest(true); @@ -639,7 +639,7 @@ const PilotForm = ({ const { detail } = useSelector(state => state.flightState); useEffect(() => { - if (detail?.cstmrSno == user?.cstmrSno) { + if (detail?.cstmrSno == user?.cstmrSno || user.authId === 'SUPER') { setTest(false); } else { setTest(true); @@ -781,7 +781,7 @@ const ArcrftForm = ({ const { detail } = useSelector(state => state.flightState); useEffect(() => { - if (detail?.cstmrSno == user?.cstmrSno) { + if (detail?.cstmrSno == user?.cstmrSno || user.authId === 'SUPER') { setTest(false); } else { setTest(true);