diff --git a/src/containers/basis/flight/aprv/FlightPlanAprvContainer.js b/src/containers/basis/flight/aprv/FlightPlanAprvContainer.js index 368f4068..cc882d31 100644 --- a/src/containers/basis/flight/aprv/FlightPlanAprvContainer.js +++ b/src/containers/basis/flight/aprv/FlightPlanAprvContainer.js @@ -193,6 +193,21 @@ const FlightPlanAprvContainer = () => { useEffect(() => { if (searchData?.groupId) { handleSearch(searchData); + + //승인/미승인버튼 활성/비활성 제어 + let my = false; + if (user.authId === 'SUPER') { + my = true; + } else if (user.authId === 'ADMIN') { + if (myGroupAuthCd) { + my = true; + } + } else if (user.authId === 'USER') { + if (groupAuthCd) { + my = true; + } + } + setIsMyGroup(my); } }, [searchData]); diff --git a/src/containers/basis/flight/plan/FlightPlanContainer.js b/src/containers/basis/flight/plan/FlightPlanContainer.js index c1c6a5bb..dbc9e7a6 100644 --- a/src/containers/basis/flight/plan/FlightPlanContainer.js +++ b/src/containers/basis/flight/plan/FlightPlanContainer.js @@ -136,6 +136,21 @@ const FlightPlanContainer = () => { useEffect(() => { if (searchData?.groupId) { handleSearch(searchData); + + //비행계획서 신청 버튼 활성/비활성 제어 + let my = false; + if (user.authId === 'SUPER') { + my = true; + } else if (user.authId === 'ADMIN') { + if (myGroupAuthCd) { + my = true; + } + } else if (user.authId === 'USER') { + if (groupAuthCd) { + my = true; + } + } + setIsMyGroup(my); } }, [searchData]);