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)