Skip to content

Commit 29733ca

Browse files
committed
feat: 축제 관리 신청 로직 롤백
1 parent 84e5062 commit 29733ca

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

src/apis/festivalManager/checkFMPermission.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/constants/apiEndpoints.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ const API_ENDPOINTS = {
6262
MY_CUSTOM_FESTIVALS: '/api/festivals/my/custom',
6363
// ai추천 내역 조회
6464
AI_RECOMMENDATION_HISTORIES: '/api/recommendations/histories',
65-
// 축제 관리자 신청 조회
66-
FM_PERMISSION_CHECK: '/api/fm-permissions/check',
6765
} as const;
6866

6967
export default API_ENDPOINTS;

src/pages/FestivalInfo/components/FestivalContentManagerSection.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { SYSTEM_MESSAGES } from '@/constants/systemMessages';
1010
import { checkFestivalManagerApply } from '@/apis/festivalManager/checkFestivalManagerApply';
1111
import { showToastErrorMessage, showToastAxiosError } from '@/utils/showToastMessage';
1212
import { checkFestivalManagerExist } from '@/apis/festivalManager/checkFestivalManagerExist';
13-
import { checkFMPermission } from '@/apis/festivalManager/checkFMPermission';
1413

1514
interface FestivalContentManagerSectionProps {
1615
festivalId: string;
@@ -64,14 +63,6 @@ const FestivalContentManagerSection = ({
6463
const roleResponse = await getUserRole();
6564
const isFestivalManager = roleResponse.data.content.isFestivalManagerOrAdmin;
6665

67-
// 축제 관리자가 이미 존재하는 지 확인
68-
const checkFMPermissionResponse = await checkFMPermission();
69-
const existsPermission = checkFMPermissionResponse.data.content;
70-
71-
if (existsPermission) {
72-
showToastErrorMessage(SYSTEM_MESSAGES.FESTIVAL_MANAGER_APPLY.ALREADY_HAS_PERMISSION);
73-
return;
74-
}
7566
if (!isFestivalManager) {
7667
// 축제 관리자 권한이 없는 경우
7768
setModalContent({

0 commit comments

Comments
 (0)