fix(tbm): 내 TBM 인식 + admin 편집 + 데스크탑 폭 + 하단네비 정리

- isMySession: admin/system/support_team 바이패스 + 중복 비교 제거
- CSS: max-width 480→768px (데스크탑 너무 좁은 문제)
- 하단 네비: 현황/출근 제거 → 연차관리(my-vacation-info) 추가

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-31 14:51:23 +09:00
parent 3cc38791c8
commit 77b66f49ae
3 changed files with 13 additions and 17 deletions

View File

@@ -123,11 +123,12 @@
};
function isMySession(s) {
var role = (currentUser.role || '').toLowerCase();
if (role === 'admin' || role === 'system' || role === 'support_team') return true;
var userId = currentUser.user_id;
var workerId = currentUser.user_id;
var userName = currentUser.name;
return (userId && String(s.created_by) === String(userId)) ||
(workerId && String(s.leader_user_id) === String(workerId)) ||
return (userId && (String(s.created_by) === String(userId) ||
String(s.leader_user_id) === String(userId))) ||
(userName && s.created_by_name === userName);
}