Merge branch release/21.7.5 of zentao/zentaopms (#11173)

This commit is contained in:
刘刚
2025-08-28 15:12:14 +08:00
committed by Gitfox
+3 -1
View File
@@ -442,9 +442,11 @@ class searchTao extends searchModel
foreach($this->config->search->fields as $objectType => $fields)
{
$module = $objectType;
$method = 'view';
if($module == 'case') $module = 'testcase';
if($module == 'feedback') $method = 'adminView';
if(common::hasPriv($module, 'view')) $allowedObjects[] = $objectType;
if(common::hasPriv($module, $method)) $allowedObjects[] = $objectType;
if($module == 'deploystep' && common::haspriv('deploy', 'viewstep')) $allowedobjects[] = $objectType;
}