revert on bug
This commit is contained in:
parent
f73723f42b
commit
3e06a348ff
|
|
@ -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'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue