[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

@ -42,8 +42,10 @@ class LogController extends AbstractController
*
* @return JsonResponse|Response
*/
public function showCategory(Request $request, DataTableFactory $dataTable)
public function showLogs(Request $request, DataTableFactory $dataTable)
{
$this->denyAccessUnlessGranted('@system.show_logs');
$table = $dataTable->createFromType(LogDataTable::class)
->handleRequest($request);