This commit is contained in:
2026-02-13 15:59:21 +05:00
parent 59f5ac5741
commit 28eae745d4
3 changed files with 83 additions and 4 deletions

View File

@@ -49,7 +49,25 @@ function createNavigation() {
id: "profile-btn"
}
];
if (currentUser && currentUser.role === 'admin') {
navButtons.push({
onclick: "showSection('mytasks')",
className: "nav-btn my-tasks",
icon: "fas fa-user-edit",
text: "Мои задачи (Автор)",
id: "my-tasks-btn"
});
}
if (currentUser && currentUser.role === 'admin') {
navButtons.push({
onclick: "showSection('runtasks')",
className: "nav-btn assigned-to-me",
icon: "fas fa-user-check",
text: "Мои задачи (Исполнитель)",
id: "kanban-btn"
});
}
// 👇 Кнопка админ-панели ТОЛЬКО для admin 👇
if (currentUser && currentUser.role === 'admin') {
navButtons.push({