fix manager
This commit is contained in:
parent
7eab647ff7
commit
b32b35540b
@ -377,7 +377,7 @@ class ProjectController extends ApiController
|
|||||||
$model = Manager::find()->with(['managerEmployees'])->where(['user_id' => $user_id])->one();
|
$model = Manager::find()->with(['managerEmployees'])->where(['user_id' => $user_id])->one();
|
||||||
|
|
||||||
if (!$model) {
|
if (!$model) {
|
||||||
throw new BadRequestHttpException(json_encode(['Менеджер не найден']));
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $model;
|
return $model;
|
||||||
|
Loading…
Reference in New Issue
Block a user