From 9b3423b53ef977cbc8a3f401f0d42cb8184ddc1d Mon Sep 17 00:00:00 2001 From: daitingting Date: Mon, 18 Aug 2025 15:05:32 +0800 Subject: [PATCH] * [task#148408,done,2h] View page of task does not need to check execution. --- module/task/zen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/zen.php b/module/task/zen.php index 30a086df6a..f5e5115724 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -2020,7 +2020,7 @@ class taskZen extends task if(!$execution || (!empty($execution) && $execution->multiple)) { /* If the admin denied modification of closed executions, only query not closed executions. */ - $queryMode = $execution && common::canModify('execution', $execution) ? '' : 'noclosed'; + $queryMode = ($this->app->methodName == 'view' || ($execution && common::canModify('execution', $execution))) ? '' : 'noclosed'; /* Get executions the current user can access. */ $this->executionPairs = $this->execution->getPairs(0, 'all', $queryMode);