Apps/Controller/Api/Profile.php 1 location
|
@@ 503-505 (lines=3) @@
|
| 500 |
|
} |
| 501 |
|
|
| 502 |
|
// check if passed user id is exist |
| 503 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
| 504 |
|
throw new NotFoundException('Wrong user info'); |
| 505 |
|
} |
| 506 |
|
|
| 507 |
|
$cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile'); |
| 508 |
|
// check if rating is enabled for website |
Apps/Controller/Front/Profile.php 1 location
|
@@ 475-477 (lines=3) @@
|
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
// check if target is defined |
| 475 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
| 476 |
|
throw new NotFoundException(); |
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
$user = App::$User->identity(); |
| 480 |
|
|