mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Added permission to control who can access label scanner.
This commit is contained in:
parent
1f48247474
commit
9a9cd8e887
4 changed files with 18 additions and 9 deletions
|
@ -51,6 +51,8 @@ class ScanController extends AbstractController
|
|||
*/
|
||||
public function dialog(Request $request): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('@tools.label_scanner');
|
||||
|
||||
$form = $this->createForm(ScanDialogType::class);
|
||||
$form->handleRequest($request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue