* [bug#53573,done,1h] fix bug.

This commit is contained in:
sunguangming
2024-08-07 15:45:01 +08:00
committed by 王怡栋
parent 80fb105023
commit 5611ad49c6
+10 -2
View File
@@ -880,12 +880,20 @@ class docModel extends model
*/
public function getTeamSpaces(): array
{
return $this->dao->select('id, name')->from(TABLE_DOCLIB)
$objectLibs = $this->dao->select('*')->from(TABLE_DOCLIB)
->where('type')->eq('custom')
->andWhere('deleted')->eq(0)
->andWhere('parent')->eq(0)
->andWhere('vision')->eq($this->config->vision)
->fetchPairs();
->fetchAll();
$pairs = array();
foreach($objectLibs as $lib)
{
if($this->checkPrivLib($lib)) $pairs[$lib->id] = $lib->name;
}
return $pairs;
}
/**