* [task#148408,done,2h] View page of task does not need to check execution.

This commit is contained in:
daitingting
2025-08-21 08:38:55 +08:00
committed by tianshujie
parent 3444b4c791
commit 9b3423b53e
+1 -1
View File
@@ -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);