* Modify the logic of the linear task check operate effort.

This commit is contained in:
tianshujie
2023-06-01 11:36:15 +08:00
parent 0db9b4b39c
commit a02a2ed290
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1810,7 +1810,7 @@ class taskModel extends model
/* Check for edit and delete effort. */
if($task->mode == 'linear')
{
if(!in_array($task->status, $this->config->task->unfinishedStatus)) return false;
if(in_array($task->status, array('pause', 'cancel', 'closed'))) return false;
if($task->status == 'doing') return $effort->account == $this->app->user->account;
}
if($this->app->user->account == $effort->account) return true;