This commit is contained in:
hufangzhou
2022-05-18 16:36:34 +08:00
parent 13202156b3
commit 82c4eba324
2 changed files with 5 additions and 4 deletions
+5 -1
View File
@@ -154,7 +154,11 @@ class doc extends control
$executions = $this->execution->getList();
/* Splice project name. */
foreach($executions as $executionID => $execution) $executions[$executionID] = $projects[$execution->project] . '/' . $execution->name;
foreach($executions as $executionID => $execution)
{
$executionPrefix = isset($projects[$execution->project]) ? $projects[$execution->project] . '/' : '';
$executions[$executionID] = $executionPrefix . $execution->name;
}
/* Get the project that has permission to view. */
foreach($projects as $projectID => $project) if(!$this->app->user->admin and strpos(',' . $this->app->user->view->projects . ',', ',' . $projectID . ',') === false) unset($projects[$projectID]);