* Adjust for get mine list.

This commit is contained in:
wangyidong
2023-10-18 16:40:55 +08:00
parent ab8f4f1ab0
commit c4f68bc53c
+1
View File
@@ -698,6 +698,7 @@ class docModel extends model
->beginIF(!common::hasPriv('doc', 'teamSpace'))->andWhere('t2.type')->ne('custom')->fi()
->beginIF($browseType == 'draft')->andWhere('t1.status')->eq('draft')->andWhere('t1.addedBy')->eq($this->app->user->account)->fi()
->beginIF($browseType == 'bysearch')->andWhere($query)->fi()
->beginIF(!empty($hasPrivDocIdList))->andWhere('t1.id')->in($hasPrivDocIdList)->fi()
->orderBy($orderBy)
->page($pager)
->fetchAll('id');