larxius commited on
Commit
fa9cdbe
·
verified ·
1 Parent(s): a38e0f6

Update frontend/src/components/Layout.jsx

Browse files
Files changed (1) hide show
  1. frontend/src/components/Layout.jsx +0 -7
frontend/src/components/Layout.jsx CHANGED
@@ -197,13 +197,6 @@ export const Layout = ({ children }) => {
197
 
198
  if (user?.role === 'super_admin') {
199
  navItems.push({ to: '/super-admin', label: 'Global Management', icon: 'admin_panel_settings' });
200
- navItems.push({ to: '/admin', label: 'Admin Panel', icon: 'manage_accounts' });
201
- navItems.push({ to: '/super-admin/logs', label: 'Logs & Threats', icon: 'policy' });
202
- } else if (user?.role === 'admin') {
203
- navItems.push({ to: '/admin', label: 'Admin Panel', icon: 'manage_accounts' });
204
- navItems.push({ to: '/super-admin/logs', label: 'Logs & Threats', icon: 'policy' });
205
- } else if (user?.role === 'support_engineer') {
206
- navItems.push({ to: '/super-admin/logs', label: 'Logs & Threats', icon: 'policy' });
207
  }
208
 
209
  return (
 
197
 
198
  if (user?.role === 'super_admin') {
199
  navItems.push({ to: '/super-admin', label: 'Global Management', icon: 'admin_panel_settings' });
 
 
 
 
 
 
 
200
  }
201
 
202
  return (