diff --git a/module/doc/model.php b/module/doc/model.php index 4e5ecaed9b..b68c65620a 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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');