mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue