Merge branch 'dev/organization/bugfix-2' into 'develop'
fix organization not loading See merge request easy-solutions/apps/easyportal!22
This commit is contained in:
commit
a20c1cd1fb
|
|
@ -33,7 +33,7 @@ export default class extends Controller {
|
|||
placeholder: "Aucun résultat trouvé pour cette recherche",
|
||||
locale: "fr", //'en' for English, 'fr' for French (en is default, no need to include it)
|
||||
|
||||
ajaxURL: `/organization/data/${this.userValue}`,
|
||||
ajaxURL: `/organization/data`,
|
||||
ajaxConfig: "GET",
|
||||
pagination: true,
|
||||
paginationMode: "remote",
|
||||
|
|
|
|||
|
|
@ -301,8 +301,8 @@ class OrganizationController extends AbstractController
|
|||
}
|
||||
|
||||
// API endpoint to fetch organization data for Tabulator
|
||||
#[Route(path: '/data/{id}', name: 'data', methods: ['GET'])]
|
||||
public function data(Request $request, int $id): JsonResponse
|
||||
#[Route(path: '/data', name: 'data', methods: ['GET'])]
|
||||
public function data(Request $request): JsonResponse
|
||||
{
|
||||
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue