mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Fixed PHPstan issues
This commit is contained in:
parent
2554120e6e
commit
df11f62a2f
5 changed files with 11 additions and 4 deletions
|
@ -145,6 +145,8 @@ class TreeController extends AbstractController
|
|||
{
|
||||
if ($this->isGranted('@parts.read') && $this->isGranted('@suppliers.read')) {
|
||||
$tree = $this->treeGenerator->getTreeView(Supplier::class, $supplier, 'list_parts_root');
|
||||
} else {
|
||||
return new JsonResponse("Access denied", 403);
|
||||
}
|
||||
|
||||
return new JsonResponse($tree);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue