From b47cd1b77b59a061741ae68e486c30f9e259b0c7 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 19 Aug 2022 11:36:05 +0800 Subject: [PATCH] * Fixed an issue where the admin could not click on the program. --- module/program/view/browsebylist.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/program/view/browsebylist.html.php b/module/program/view/browsebylist.html.php index 5684629bfa..53c2ce2b3e 100644 --- a/module/program/view/browsebylist.html.php +++ b/module/program/view/browsebylist.html.php @@ -58,7 +58,7 @@ ?> type == 'program'):?> - user->view->programs},", ",$program->id,") !== false ? html::a($this->createLink('program', 'product', "programID=$program->id"), $program->name) : $program->name;?> + user->admin or strpos(",{$app->user->view->programs},", ",$program->id,") !== false) ? html::a($this->createLink('program', 'product', "programID=$program->id"), $program->name) : $program->name;?> createLink('project', 'index', "projectID=$program->id", '', '', $program->id), $program->name, '', 'class="text-ellipsis text-primary"');?>