some progress
This commit is contained in:
parent
508b82f5e8
commit
efba33d10a
|
@ -21,7 +21,7 @@ class ReportController extends AbstractController
|
|||
#[Route('/api/report/person/buysell', name: 'app_report_person_buysell')]
|
||||
public function app_report_person_buysell(Access $access, Request $request, EntityManagerInterface $entityManagerInterface): JsonResponse
|
||||
{
|
||||
$acc = $access->hasRole('reports');
|
||||
$acc = $access->hasRole('report');
|
||||
if (!$acc) {
|
||||
throw $this->createAccessDeniedException();
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ class ReportController extends AbstractController
|
|||
#[Route('/api/report/person/buysell/export/excel', name: 'app_report_person_buysell_export_excell')]
|
||||
public function app_report_person_buysell_export_excell(Provider $provider, Access $access, Request $request, EntityManagerInterface $entityManagerInterface): BinaryFileResponse | JsonResponse | StreamedResponse
|
||||
{
|
||||
$acc = $access->hasRole('reports');
|
||||
$acc = $access->hasRole('report');
|
||||
if (!$acc)
|
||||
throw $this->createAccessDeniedException();
|
||||
$params = [];
|
||||
|
|
Loading…
Reference in a new issue