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
|
||||
{
|
||||
$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(
|
||||
['Organization' => $organization],
|
||||
['date' => 'DESC'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue