diff --git a/src/containers/basis/dron/BasisDronContainer.js b/src/containers/basis/dron/BasisDronContainer.js index 41f42f7..8693e74 100644 --- a/src/containers/basis/dron/BasisDronContainer.js +++ b/src/containers/basis/dron/BasisDronContainer.js @@ -1,7 +1,7 @@ import moment from 'moment'; import { useEffect, useState } from 'react'; import { shallowEqual, useDispatch, useSelector } from 'react-redux'; -import { useHistory,Link } from 'react-router-dom'; +import { useHistory, Link } from 'react-router-dom'; import { Button, Col, Row } from 'reactstrap'; import { BasisDronGrid } from '../../../components/basis/dron/BasisDronGrid'; import { BasisGroupDronGrid } from '../../../components/basis/dron/BasisGroupDronGrid'; @@ -128,7 +128,7 @@ export const BasisDronContainer = props => { cell: row => { return ( 상세보기 @@ -170,9 +170,10 @@ export const BasisDronContainer = props => { }; const handlerDetail = (groupId, groupNm, groupAuthCd, aprvlYn) => { + if ( // groupAuthCd === 'CREATER' || - groupAuthCd === 'MASTER' || + groupAuthCd === 'MASTER' || user.authId ==='SUPER' || // (aprvlYn === 'Y' && groupAuthCd === 'ADMIN') (aprvlYn === 'Y' && groupAuthCd === 'LEADER') ) { diff --git a/src/containers/basis/dron/BasisDronDetailContainer.js b/src/containers/basis/dron/BasisDronDetailContainer.js index 16b532b..c76e1e1 100644 --- a/src/containers/basis/dron/BasisDronDetailContainer.js +++ b/src/containers/basis/dron/BasisDronDetailContainer.js @@ -124,6 +124,8 @@ export const BasisDronDetailContainer = props => { if (detail?.createUserId != user?.userId) { props.setIsDisabled(true); } + } if (user.authId === 'SUPER') { + props.setIsDisabled(false); } }, [selectData, detail]); diff --git a/src/containers/basis/dron/BasisIdntfContainer.js b/src/containers/basis/dron/BasisIdntfContainer.js index 50581cf..1332edb 100644 --- a/src/containers/basis/dron/BasisIdntfContainer.js +++ b/src/containers/basis/dron/BasisIdntfContainer.js @@ -54,6 +54,8 @@ export const BasisIdntfContainer = props => { if (detail?.createUserId != user?.userId) { props.setIsDisabled(true); } + } if (user.authId === 'SUPER') { + props.setIsDisabled(false); } }, [detail]);