diff --git a/module/doc/model.php b/module/doc/model.php index 031fe81dd0..ec8f79ec43 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -700,7 +700,7 @@ class docModel extends model ->where('t1.deleted')->eq(0) ->andWhere('t1.lib')->ne('') ->andWhere('t1.vision')->eq($this->config->vision) - ->andWhere('t1.type')->in('text,word,ppt,excel,url,article') + ->andWhere('t1.type')->in('text,word,ppt,excel,url,article,attachment') ->beginIF($type == 'createdby')->andWhere('t1.addedBy')->eq($this->app->user->account)->fi() ->beginIF($type == 'editedby')->andWhere('t1.id')->in($docIdList)->fi() ->beginIF(!common::hasPriv('doc', 'productSpace'))->andWhere('t2.type')->ne('product')->fi()