From 33bd6d3d7fa53a5d05d4257cda447ece69f008b2 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Tue, 22 Feb 2022 11:29:15 +0100 Subject: [PATCH] Fix bugs when fetch users group --- app/Http/Controllers/UserGroupController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserGroupController.php b/app/Http/Controllers/UserGroupController.php index c90bc34..b0f3ade 100755 --- a/app/Http/Controllers/UserGroupController.php +++ b/app/Http/Controllers/UserGroupController.php @@ -638,13 +638,13 @@ ug.date_creation , ug.createur , ug.sponsor1 , ug.sponsor2 , ug.sponsor3, ug.cou if ($init_country != $sponsor_country) return $this->errorResponse(trans('errors.sponsor_not_registered_in_same_country', ['id' => $id])); - return $this->checkUserIdentification($sponsor->id, $id); + return $this->checkUserIdentificationWithSponsorId($sponsor->id, $id); } else { return $this->errorResponse(trans('errors.sponsor_not_found', ['id' => $id])); } } - public function checkUserIdentification($id_user, $id) + public function checkUserIdentificationWithSponsorId($id_user, $id) { $identification = Identification::where('id_user', $id_user)->first(); if (isset($identification)) {