From c1e3234178ef7d6cf618ed07da089725850d65d4 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 7 Feb 2023 11:34:31 +0800 Subject: [PATCH] * Code for finish task #83721. --- module/admin/lang/menu.php | 2 +- module/custom/view/required.html.php | 2 +- module/custom/view/set.html.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/admin/lang/menu.php b/module/admin/lang/menu.php index 771895c437..20d016014f 100644 --- a/module/admin/lang/menu.php +++ b/module/admin/lang/menu.php @@ -93,7 +93,7 @@ $lang->admin->menuList->feature['subMenu']['user'] = array('link' => "{$l $lang->admin->menuList->feature['tabMenu']['my']['todo'] = array('link' => "{$lang->todo->common}|custom|set|module=todo&field=priList"); $lang->admin->menuList->feature['tabMenu']['my']['block'] = array('link' => "{$lang->block->common}|custom|set|module=block&field=closed"); -$lang->admin->menuList->feature['tabMenu']['my']['task'] = array('link' => "{$lang->task->common}|custom|required|module=task", 'links' => array('custom|set|module=task&field=priList')); +if($config->vision == 'lite') $lang->admin->menuList->feature['tabMenu']['my']['task'] = array('link' => "{$lang->task->common}|custom|required|module=task", 'links' => array('custom|set|module=task&field=priList')); $lang->admin->menuList->feature['tabMenu']['product']['product'] = array('link' => "{$lang->productCommon}|custom|required|module=product", 'links' => array("custom|browsestoryconcept|", 'custom|product|')); diff --git a/module/custom/view/required.html.php b/module/custom/view/required.html.php index be44c97b4e..14d9bc90d3 100644 --- a/module/custom/view/required.html.php +++ b/module/custom/view/required.html.php @@ -21,7 +21,7 @@ $method = $key == 'required' ? 'required' : 'set'; $params = $key == 'required' ? "module=$moduleName" : "module=$moduleName&field=$key"; $active = $key == 'required' ? 'active' : ''; - echo html::a(inlink($method, $params), $value, '', "class='$active'"); + if(common::hasPriv('custom', $method)) echo html::a(inlink($method, $params), $value, '', "class='$active'"); } ?> diff --git a/module/custom/view/set.html.php b/module/custom/view/set.html.php index 504b6f0cc8..a135bf2dc0 100644 --- a/module/custom/view/set.html.php +++ b/module/custom/view/set.html.php @@ -58,7 +58,7 @@ EOT; $method = $key == 'required' ? 'required' : 'set'; $params = $key == 'required' ? "module=$module" : "module=$module&field=$key"; $active = $field == $key ? 'active' : ''; - echo html::a(inlink($method, $params), $value, '', "class='$active'"); + if(common::hasPriv('custom', $method)) echo html::a(inlink($method, $params), $value, '', "class='$active'"); } ?>