Apps/Controller/Api/Profile.php 1 location
|
@@ 490-492 (lines=3) @@
|
487 |
|
} |
488 |
|
|
489 |
|
// check if passed user id is exist |
490 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
491 |
|
throw new NotFoundException('Wrong user info'); |
492 |
|
} |
493 |
|
|
494 |
|
$cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile'); |
495 |
|
// check if rating is enabled for website |
Apps/Controller/Front/Profile.php 1 location
|
@@ 435-437 (lines=3) @@
|
432 |
|
} |
433 |
|
|
434 |
|
// check if target is defined |
435 |
|
if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) { |
436 |
|
throw new NotFoundException(); |
437 |
|
} |
438 |
|
|
439 |
|
$user = App::$User->identity(); |
440 |
|
|