Skip to content

Commit 5eb10c1

Browse files
committed
[FE] [FIX] 부회장 권한 추가
1 parent dd392d2 commit 5eb10c1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/src/components/AdminRoute.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import { api } from '../utils/axios';
44

55
const isAdminRole = (role) => {
66
const normalizedRole = String(role || '').trim().toUpperCase();
7-
return normalizedRole === 'PRESIDENT' || normalizedRole === 'SYSTEM_ADMIN';
7+
return (
8+
normalizedRole === 'PRESIDENT' ||
9+
normalizedRole === 'SYSTEM_ADMIN' ||
10+
normalizedRole === 'VICE_PRESIDENT'
11+
);
812
};
913

1014
const AdminRoute = () => {

frontend/src/components/Sidebar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { getParentBoards } from '../utils/boardApi';
99
import { isAllBoardName, normalizeBoardPath, toBoardPath } from '../utils/boardRoute';
1010
import DropdownArrowIcon from '../assets/boardSelectArrow.svg';
1111

12-
const ADMIN_VISIBLE_ROLES = ['SYSTEM_ADMIN', 'PRESIDENT'];
12+
const ADMIN_VISIBLE_ROLES = ['SYSTEM_ADMIN', 'PRESIDENT', 'VICE_PRESIDENT'];
1313
const ATTENDANCE_MANAGE_VISIBLE_ROLES = [
1414
'SYSTEM_ADMIN',
1515
'PRESIDENT',

0 commit comments

Comments
 (0)