Apps/Controller/Api/Profile.php 1 location
|
@@ 512-514 (lines=3) @@
|
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
// check if passed user id is exist |
| 512 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
| 513 |
|
throw new NotFoundException('Wrong user info'); |
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
$cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile'); |
| 517 |
|
// check if rating is enabled for website |
Apps/Controller/Front/Profile.php 1 location
|
@@ 488-490 (lines=3) @@
|
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
// check if target is defined |
| 488 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
| 489 |
|
throw new NotFoundException(); |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
$user = App::$User->identity(); |
| 493 |
|
|