mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
[EventLog] Added permission checking and link in tools tree.
This commit is contained in:
parent
8b1eccc48d
commit
b0dacbf570
4 changed files with 82 additions and 2 deletions
|
@ -212,6 +212,13 @@ class ToolsTreeBuilder
|
|||
);
|
||||
}
|
||||
|
||||
if ($this->security->isGranted('@system.show_logs')) {
|
||||
$nodes[] = new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.system.event_log'),
|
||||
$this->urlGenerator->generate('log_view')
|
||||
);
|
||||
}
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue