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)) {