mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +02:00
Improved permission checking for certain controllers.
This commit is contained in:
parent
a30b67e328
commit
78d1dff40f
3 changed files with 10 additions and 1 deletions
|
@ -131,7 +131,7 @@ class AttachmentFileController extends AbstractController
|
|||
*/
|
||||
public function attachmentsTable(Request $request, DataTableFactory $dataTableFactory, NodesListBuilder $nodesListBuilder)
|
||||
{
|
||||
$this->denyAccessUnlessGranted('read', new PartAttachment());
|
||||
$this->denyAccessUnlessGranted('@attachments.list_attachments');
|
||||
|
||||
$formRequest = clone $request;
|
||||
$formRequest->setMethod('GET');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue