From bec09e5a0abcc2d63222c319868866d1cc999e88 Mon Sep 17 00:00:00 2001 From: wangyuting <851424971@qq.com> Date: Fri, 11 Nov 2022 07:28:46 +0000 Subject: [PATCH] * Adjust isFeature to canConfigFeature. --- framework/helper.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index 50041c002f..2b352119c7 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -98,20 +98,20 @@ class helper extends baseHelper { if($feature == 'product' or $feature == 'scrum' or $feature == 'waterfall') return strpos(",$config->disabledFeatures,", ",{$feature},") === false; - $hasFeature = false; - $isFeature = false; + $hasFeature = false; + $canConfigFeature = false; foreach($config->featureGroup as $group => $modules) { foreach($modules as $module) { if($feature == $group or $feature == $module) { - $isFeature = true; + $canConfigFeature = true; if(helper::hasFeature("{$group}_{$module}")) $hasFeature = true; } } } - return !$isFeature or ($hasFeature && strpos(",$config->disabledFeatures,", ",{$feature},") === false); + return !$canConfigFeature or ($hasFeature && strpos(",$config->disabledFeatures,", ",{$feature},") === false); } }