fix add user to project

This commit is contained in:
Kavalar 2023-05-11 01:24:04 +03:00
parent b0c350efbd
commit d6f5ffcd26

View File

@ -434,7 +434,7 @@ class ProjectController extends ApiController
$model = new ProjectUser();
$model->load($request, '');
if ($model->user->userCard){
if (isset($model->user->userCard)){
$model->card_id = $model->user->userCard->id;
}