From 3a3e9b417f26206d1143eda5a4ea2ba8c0397939 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Wed, 15 Jul 2026 12:36:30 +0530 Subject: [PATCH] FIX_TOCKEN_ISSUE --- app/Controllers/RestAuthenticationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 2a0e069..ac28f82 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -894,8 +894,8 @@ class RestAuthenticationController extends AdminController $hasNonEbPolicy = false; if (!empty($allowedActivePolicies)) { - $db = \Config\Database::connect(); - $policyAllocgRows = $db->table('client_policy') + + $policyAllocgRows = $db2->table('client_policy') ->select('policy_type.allocg') ->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left') ->whereIn('client_policy.id', $allowedActivePolicies)