From 2fa11c196e37ec9e1f68c8f2dfb050dff0856d1c Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Thu, 1 Sep 2022 13:31:51 +0800 Subject: [PATCH] * Fix bug #27041. --- module/repo/control.php | 1 + module/task/model.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module/repo/control.php b/module/repo/control.php index 9eb502a03e..c0ea44aaba 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -302,6 +302,7 @@ class repo extends control $this->view->file = $file; $this->view->entry = $entry; $this->view->path = $entry; + $this->view->info = $info; $this->view->suffix = $suffix; $this->view->content = $content ? $content : ''; $this->view->pathInfo = $pathInfo; diff --git a/module/task/model.php b/module/task/model.php index e6e3499c11..58705bfc4e 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1745,8 +1745,10 @@ class taskModel extends model foreach($record->dates as $id => $item) if($item > $today) dao::$errors[] = 'ID #' . $id . ' ' . $this->lang->task->error->date; if(dao::isError()) return false; + $task = $this->getById($taskID); + if(!empty($task->team) and !isset($task->team[$this->app->user->account])) return false; + $estimates = array(); - $task = $this->getById($taskID); $earliestTime = ''; foreach(array_keys($record->id) as $id) {