change display logic
This commit is contained in:
parent
37ba0a5e6a
commit
95f806efce
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue