меню
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user