* fix bug.

This commit is contained in:
wangyidong
2020-05-26 09:14:31 +08:00
parent 5d5dd33ac5
commit fd0da30d09
10 changed files with 42 additions and 12 deletions
+2 -2
View File
@@ -1453,7 +1453,7 @@ class userModel extends model
}
if(!empty($users)) continue;
if($objectType == 'product') $whiteList += $this->getProductWhiteListUsers($object, $groupUsers, zget($linkedProductProjects, $objctID, array()), zget($teamGroups, $objectID, array()));
if($objectType == 'product') $whiteList += $this->getProductWhiteListUsers($object, $groupUsers, zget($linkedProductProjects, $objectID, array()), zget($teamGroups, $objectID, array()));
if($objectType == 'project') $whiteList += $this->getProjectWhiteListUsers($object, $groupUsers, zget($teamGroups, $objectID, array()));
}
if(empty($objects)) return true;
@@ -1472,7 +1472,7 @@ class userModel extends model
{
foreach($objects as $objectID => $object)
{
$linkedProjects = $objectType == 'product' ? zget($linkedProductProjects, $objctID, array()) : array();
$linkedProjects = $objectType == 'product' ? zget($linkedProductProjects, $objectID, array()) : array();
$members = zget($teamGroups, $objectID, array());
if($objectType == 'product')