diff --git a/system1-factory/web/js/monthly-comparison.js b/system1-factory/web/js/monthly-comparison.js index 81e0757..ff6c2e9 100644 --- a/system1-factory/web/js/monthly-comparison.js +++ b/system1-factory/web/js/monthly-comparison.js @@ -91,7 +91,7 @@ document.addEventListener('DOMContentLoaded', () => { const urlMode = params.get('mode'); setTimeout(() => { - const user = window.currentUser; + const user = typeof getCurrentUser === 'function' ? getCurrentUser() : window.currentUser; if (!user) return; // 비관리자 → 작업자 전용 확인 페이지로 리다이렉트 diff --git a/system1-factory/web/pages/attendance/monthly-comparison.html b/system1-factory/web/pages/attendance/monthly-comparison.html index 01dc20c..7e8b52f 100644 --- a/system1-factory/web/pages/attendance/monthly-comparison.html +++ b/system1-factory/web/pages/attendance/monthly-comparison.html @@ -157,9 +157,9 @@
- + - + diff --git a/system1-factory/web/pages/dashboard-new.html b/system1-factory/web/pages/dashboard-new.html index 27a79a5..5519c6c 100644 --- a/system1-factory/web/pages/dashboard-new.html +++ b/system1-factory/web/pages/dashboard-new.html @@ -45,7 +45,7 @@ - + diff --git a/system1-factory/web/static/js/tkfb-core.js b/system1-factory/web/static/js/tkfb-core.js index 9ebc4de..0ae737f 100644 --- a/system1-factory/web/static/js/tkfb-core.js +++ b/system1-factory/web/static/js/tkfb-core.js @@ -242,6 +242,7 @@ function toggleMobileMenu() { /* ===== State ===== */ let currentUser = null; +function getCurrentUser() { return currentUser; } /* ===== Init ===== */ async function initAuth() {