fix: 대시보드 버튼을 메인 대시보드(그룹장 대시보드)로 통일
모든 역할의 사용자가 group-leader.html로 이동하도록 수정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -67,18 +67,10 @@ function populateUserInfo(doc, user) {
|
|||||||
if (el) el.textContent = elements[id];
|
if (el) el.textContent = elements[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 역할별 대시보드 URL 설정
|
// 메인 대시보드 URL 설정 (그룹장 대시보드가 메인)
|
||||||
const dashboardBtn = doc.getElementById('dashboardBtn');
|
const dashboardBtn = doc.getElementById('dashboardBtn');
|
||||||
if (dashboardBtn) {
|
if (dashboardBtn) {
|
||||||
let dashboardUrl = '/pages/dashboard/user.html'; // 기본값
|
dashboardBtn.href = '/pages/dashboard/group-leader.html';
|
||||||
|
|
||||||
if (user.role === 'admin' || user.role === 'system') {
|
|
||||||
dashboardUrl = '/pages/dashboard/system.html';
|
|
||||||
} else if (user.role === 'leader' || user.access_level === 'group_leader') {
|
|
||||||
dashboardUrl = '/pages/dashboard/group-leader.html';
|
|
||||||
}
|
|
||||||
|
|
||||||
dashboardBtn.href = dashboardUrl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user