fix(tksupport): 부서 페이지 권한 동작 수정 — requireAdmin/requireSupportTeam 제거, 네비게이션 권한 기반 렌더링
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -163,10 +163,7 @@
|
||||
|
||||
async function initPage() {
|
||||
if (!initAuth()) return;
|
||||
if (!currentUser || !['support_team','admin','system'].includes(currentUser.role)) {
|
||||
document.querySelector('.flex-1').innerHTML = '<div class="bg-white rounded-xl shadow-sm p-8 text-center text-gray-500"><i class="fas fa-lock text-4xl mb-3 block"></i>지원팀 이상 권한이 필요합니다</div>';
|
||||
return;
|
||||
}
|
||||
// 권한은 API requirePage에서 체크 — 403 시 loadAll에서 에러 표시
|
||||
const thisYear = new Date().getFullYear();
|
||||
[document.getElementById('yearSelect'), document.getElementById('v2YearSelect')].forEach(sel => {
|
||||
for (let y = thisYear + 1; y >= thisYear - 2; y--)
|
||||
|
||||
Reference in New Issue
Block a user