diff --git a/apps/admin(deprecated)/src/pages/Members/index.tsx b/apps/admin(deprecated)/src/pages/Members/index.tsx index b72dd04c..ae67fab3 100644 --- a/apps/admin(deprecated)/src/pages/Members/index.tsx +++ b/apps/admin(deprecated)/src/pages/Members/index.tsx @@ -10,10 +10,12 @@ import { AdminContainer, AdminContainerInner } from '@pages/styled'; import { useGetMemberListData } from '@src/apis/hooks/useGetMemberListData'; import { useModalHandle } from '@src/hooks/useModalHandle'; import { IUserDataType } from '@type/userDataType'; +import { useGetMyData } from '@src/apis/hooks/useGetMyData'; const Members = () => { const { memberListData } = useGetMemberListData(); const { openModal, closeModal } = useModalHandle('MEMBER'); + const { userData } = useGetMyData(); const [selectMember, setSelectMember] = React.useState( null, ); @@ -54,7 +56,12 @@ const Members = () => { { - openModal(member.userId); + if ( + userData?.role !== 'MEMBER' && + userData?.role !== 'GUEST' + ) { + openModal(member.userId); + } setSelectMember(member); }} > diff --git a/apps/admin(deprecated)/src/pages/Redirect/index.tsx b/apps/admin(deprecated)/src/pages/Redirect/index.tsx index a2d1205f..fef8c569 100644 --- a/apps/admin(deprecated)/src/pages/Redirect/index.tsx +++ b/apps/admin(deprecated)/src/pages/Redirect/index.tsx @@ -18,7 +18,11 @@ const Redirect = () => { useEffect(() => { if (!token) return; if (!(userData && userData.role)) return; - if (userData.role === 'LEAD' || userData.role === 'CORE') { + if ( + userData.role === 'LEAD' || + userData.role === 'CORE' || + userData.role === 'MEMBER' + ) { navigate('/certified'); } else { navigate('/');