diff --git a/module/project/view/view.html.php b/module/project/view/view.html.php index bf7ee2976e..89a57e8017 100644 --- a/module/project/view/view.html.php +++ b/module/project/view/view.html.php @@ -140,11 +140,11 @@ { if($name != $end) { - echo strpos(",{$app->user->view->programs},", ",$ID,") !== false ? html::a($this->createLink('program', 'product', "programID=$ID"), $name) . '/ ' : $name . '/ '; + echo common::hasPriv('program', 'product') ? html::a($this->createLink('program', 'product', "programID=$ID"), $name) . '/ ' : $name . '/ '; } else { - echo strpos(",{$app->user->view->programs},", ",$ID,") !== false ? html::a($this->createLink('program', 'product', "programID=$ID"), $name) : $name; + echo common::hasPriv('program', 'product') ? html::a($this->createLink('program', 'product', "programID=$ID"), $name) : $name; } } ?>