revert on bug

This commit is contained in:
Charles 2026-02-11 16:16:32 +01:00
parent f73723f42b
commit 3e06a348ff
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ActionController extends AbstractController
public function fetchActivitiesAjax(Organizations $organization): JsonResponse public function fetchActivitiesAjax(Organizations $organization): JsonResponse
{ {
$this->denyAccessUnlessGranted('ROLE_USER'); $this->denyAccessUnlessGranted('ROLE_USER');
if($this->userService->isAdminOfOrganization($organization)){ if($this->userService->isAdminOfOrganization($organization) || $this->isGranted('ROLE_ADMIN')) {
$actions = $this->entityManager->getRepository(Actions::class)->findBy( $actions = $this->entityManager->getRepository(Actions::class)->findBy(
['Organization' => $organization], ['Organization' => $organization],
['date' => 'DESC'], ['date' => 'DESC'],