project column

This commit is contained in:
apuc committed 2023-04-20 02:07:19 +03:00
1 parent edea2cc3e7
commit 2482ae89f6
24 files changed
+737 -18

No files matched your search

@@ -82,7 +82,7 @@ class ProjectController extends ApiController
}
if (!empty($user_id)) {
$projectIdList = ProjectUser::find()->where(['user_id' => $user_id])->select('project_id')->column();
$query = Project::find()->where([ 'IN', 'id', $projectIdList]);
$query = Project::find()->where([ 'IN', 'id', $projectIdList])->orWhere(['owner_id' => $user_id]);
} else {
$query = Project::find();
}