fix: 로그인 리다이렉트 통합 및 캐시 버스팅 정리

- config.js loginPage를 /index.html에서 /login(SSO)으로 변경
- navigation.js, load-navbar.js에 redirect 파라미터 추가
- 8개 JS 파일의 하드코딩된 '/login' → window.getLoginUrl() 전환
- 로그아웃 시 clearSSOAuth() 호출 추가 (SSO 쿠키 삭제)
- api-base.js v=2→v=3 (SW 캐시 해제 코드 통합)
- TBM 모듈 버전 쿼리스트링 통일 (tbm.html, tbm-mobile.html)
- dashboard.html SW 캐시 해제 인라인 코드 제거 (api-base.js에서 처리)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-05 09:56:08 +09:00
parent 4388628788
commit 6f1efdb03c
52 changed files with 118 additions and 99 deletions

View File

@@ -76,7 +76,10 @@ async function loadIncompleteTbms() {
// 사용자 권한 확인 및 필터링
const user = getUser();
if (user && user.role !== 'Admin' && user.access_level !== 'system') {
const userRole = (user && user.role || '').toLowerCase();
const userAccess = (user && user.access_level || '').toLowerCase();
const isAdmin = userRole === 'admin' || userAccess === 'admin' || userAccess === 'system';
if (user && !isAdmin) {
// 일반 사용자: 자신이 생성한 세션만 표시
const userId = user.user_id;
data = data.filter(tbm => tbm.created_by === userId);