From 11bc4c03c6f372a90e1536a0646abe6079ef9489 Mon Sep 17 00:00:00 2001 From: Vijay Khollam Date: Wed, 31 Jul 2019 19:21:23 +0530 Subject: [PATCH] Issue #6 feat: Get only enabled users node --- src/components/com_cluster/administrator/models/clusters.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/com_cluster/administrator/models/clusters.php b/src/components/com_cluster/administrator/models/clusters.php index 25ac53d..0202108 100644 --- a/src/components/com_cluster/administrator/models/clusters.php +++ b/src/components/com_cluster/administrator/models/clusters.php @@ -106,6 +106,9 @@ protected function getListQuery() $query->where('(cl.state = 0 OR cl.state = 1)'); } + // Get only enabled users node + $query->where($db->quoteName('users.block') . ' = 0'); + // Add the list ordering clause. $orderCol = $this->state->get('list.ordering'); $orderDirn = $this->state->get('list.direction');