perf: 子任务允许多个负责人

This commit is contained in:
kuaifan
2023-03-09 03:27:19 +08:00
parent 032b02c1ec
commit dc9a7c07e8
3 changed files with 7 additions and 4 deletions

View File

@@ -674,9 +674,6 @@ class ProjectTask extends AbstractModel
'owner' => 1,
]);
$array[] = $uid;
if ($this->parent_id) {
break; // 子任务只能是一个负责人
}
}
if ($array) {
if (count($older) == 0 && count($array) == 1 && $array[0] == User::userid()) {