change display logic

This commit is contained in:
Charles 2025-08-06 15:52:48 +02:00
parent 37ba0a5e6a
commit 95f806efce
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class OrganizationController extends AbstractController
public function index(): Response
{
if ($this->isGranted('ROLE_SUPER_ADMIN')) {
$organizations = $this->entityManager->getRepository(Organizations::class)->findBy(['isActive' => true]);
$organizations = $this->entityManager->getRepository(Organizations::class)->findBy(['isDeleted' => false]);
} else {
$user = $this->getUser();
if (!$user) {