Apps/Controller/Api/Profile.php 1 location
|
@@ 532-534 (lines=3) @@
|
529 |
|
} |
530 |
|
|
531 |
|
// check if passed user id is exist |
532 |
|
if (!Any::isInt($targetId) || $targetId < 1 || !App::$User->isExist($targetId)) { |
533 |
|
throw new NotFoundException('Wrong user info'); |
534 |
|
} |
535 |
|
|
536 |
|
$cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile'); |
537 |
|
// check if rating is enabled for website |
Apps/Controller/Front/Profile.php 1 location
|
@@ 188-190 (lines=3) @@
|
185 |
|
} |
186 |
|
|
187 |
|
// check if target is defined |
188 |
|
if (!Any::isInt($targetId) || $targetId < 1 || !App::$User->isExist($targetId)) { |
189 |
|
throw new NotFoundException(); |
190 |
|
} |
191 |
|
|
192 |
|
$user = App::$User->identity(); |
193 |
|
|