This commit is contained in:
tianshujie98
2021-03-31 09:15:01 +08:00
parent c142160044
commit b734b5edcc
6 changed files with 73 additions and 49 deletions
+5 -1
View File
@@ -19,7 +19,11 @@ class custom extends control
*/
public function index()
{
if(common::hasPriv('custom', 'set')) die(js::locate(inlink('set', "module=project&field=" . key($this->lang->custom->project->fields))));
if(($this->config->systemMode == 'new') and common::hasPriv('custom', 'set'))
{
die(js::locate(inlink('set', "module=project&field=" . key($this->lang->custom->project->fields))));
}
if(common::hasPriv('custom', 'product')) die(js::locate(inlink('product')));
if(common::hasPriv('custom', 'execution')) die(js::locate(inlink('execution')));