[ReelCalculator] Added permission and added it to tools menu.

This commit is contained in:
Jan Böhmer 2020-06-03 22:19:59 +02:00
parent 21f0727509
commit 36dfae52f2
6 changed files with 37 additions and 10 deletions

View file

@ -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;
}