* [task#133038,done,0.2h] finish task.

This commit is contained in:
sunguangming
2024-11-20 15:05:58 +08:00
committed by 王怡栋
parent ba6f0a9426
commit 4779c66df3
+1 -1
View File
@@ -2249,7 +2249,7 @@ class taskModel extends model
if($action == 'totask') return true;
/* 父任务只能编辑、创建子任务和指派。 Parent task only can edit task, create children and assign to somebody. */
if((!empty($task->isParent)) && !in_array($action, array('edit', 'batchcreate', 'cancel', 'assignto', 'pause', 'close', 'restart'))) return false;
if((!empty($task->isParent)) && !in_array($action, array('edit', 'batchcreate', 'cancel', 'assignto', 'pause', 'close', 'restart', 'confirmstorychange'))) return false;
/* 子任务、多人任务、已取消已关闭的任务不能创建子任务。Multi task and child task and canceled/closed task cannot create children. */
if($action == 'batchcreate' && (!empty($task->team) || !empty($task->rawParent) || in_array($task->status, array('closed', 'cancel')))) return false;