Upodate flow nodes tutorial
Deploy Frontend / build-and-deploy (push) Successful in 26s Details

This commit is contained in:
romanskijdev 2026-07-16 13:54:04 +03:00
parent 404f324f5c
commit 98481e4f8a
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import {
IconUserCog,
IconCheck,
IconBellRinging,
IconBlocks,
} from '@tabler/icons-react'
import { useLocation, useNavigate } from 'react-router-dom'
import { useAuth } from '@/hooks/useAuth'
@ -54,13 +55,13 @@ const menuItems: MenuItem[] = [
{ label: 'Исполнители', icon: IconUserCheck, path: '/executors' },
]
},
{ label: 'Конструктор тем', icon: IconBlocks, path: '/nodes', adminOnly: true },
{ label: 'Иерархия', icon: IconGitBranch, path: '/hierarchies', adminOnly: true },
]
},
{ label: 'Настройки', icon: IconSettings, path: '/settings'},
]
// 🆕 Рекурсивная фильтрация меню по роли
function filterMenuByRole(items: MenuItem[], isObserver: boolean): MenuItem[] {
return items
.filter((item) => {