[EventLog] Added permission checking and link in tools tree.

This commit is contained in:
Jan Böhmer 2020-01-25 23:17:06 +01:00
parent 8b1eccc48d
commit b0dacbf570
4 changed files with 82 additions and 2 deletions

View file

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