* Rewrite program product page.

This commit is contained in:
wangyidong
2023-06-19 15:59:52 +08:00
parent fa0dc5e29b
commit 76822fd846
6 changed files with 104 additions and 35 deletions
+2 -1
View File
@@ -753,7 +753,8 @@ class program extends control
$program = $this->program->getByID($programID);
if(!$program) return print(js::error($this->lang->notFound) . js::locate('back'));
echo $this->fetch('program', 'product', "programID=$programID");
if(common::hasPriv('program', 'product')) return $this->locate(inlink('product', "programID=$programID"));
if(common::hasPriv('program', 'project')) return $this->locate(inlink('project', "programID=$programID"));
}
/**