Apps/Controller/Front/Profile.php 1 location
|
@@ 373-375 (lines=3) @@
|
| 370 |
|
} |
| 371 |
|
|
| 372 |
|
// check if target is defined |
| 373 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
| 374 |
|
throw new NotFoundException(); |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
$user = App::$User->identity(); |
| 378 |
|
|
Apps/Controller/Api/Profile.php 1 location
|
@@ 467-469 (lines=3) @@
|
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
// check if passed user id is exist |
| 467 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
| 468 |
|
throw new JsonException('Wrong user info'); |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
$cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile'); |
| 472 |
|
// check if rating is enabled for website |