diff --git a/frontend/src/toolRegistry.js b/frontend/src/toolRegistry.js index 12bfff1..42d0b10 100644 --- a/frontend/src/toolRegistry.js +++ b/frontend/src/toolRegistry.js @@ -157,10 +157,11 @@ export const TOOLS = [ // Neues Tool: { id:'...', Icon:..., label:'...', navLabel:'...', group:'...', component:... }, ]; -export function getGroupedTools(isAdmin = false) { +export function getGroupedTools(isAdmin = false, hiddenTools = []) { const groups = {}; for (const t of TOOLS) { if (t.adminOnly && !isAdmin) continue; + if (hiddenTools.includes(t.id)) continue; const g = t.group || 'Allgemein'; if (!groups[g]) groups[g] = []; groups[g].push(t);