mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
[ReelCalculator] Added permission and added it to tools menu.
This commit is contained in:
parent
21f0727509
commit
36dfae52f2
6 changed files with 37 additions and 10 deletions
|
@ -132,6 +132,13 @@ class ToolsTreeBuilder
|
|||
);
|
||||
}
|
||||
|
||||
if ($this->security->isGranted('@tools.reel_calculator')) {
|
||||
$nodes[] = new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.tools.reel_calculator'),
|
||||
$this->urlGenerator->generate('tools_reel_calculator')
|
||||
);
|
||||
}
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue