* [bug#56718] fix view deleted doc.
This commit is contained in:
@@ -735,8 +735,7 @@ class docModel extends model
|
||||
{
|
||||
$docs = $this->dao->select('t1.*')->from(TABLE_DOC)->alias('t1')
|
||||
->leftJoin(TABLE_MODULE)->alias('t2')->on('t1.module=t2.id')
|
||||
->where('t1.deleted')->eq(0)
|
||||
->andWhere('t1.lib')->in($libs)
|
||||
->where('t1.lib')->in($libs)
|
||||
->andWhere('t1.vision')->eq($this->config->vision)
|
||||
->andWhere('t1.templateType')->eq('')
|
||||
->andWhere("(t1.status = 'normal' or (t1.status = 'draft' and t1.addedBy='{$this->app->user->account}'))")
|
||||
@@ -746,8 +745,7 @@ class docModel extends model
|
||||
->fetchAll('id');
|
||||
|
||||
$rootDocs = $this->dao->select('*')->from(TABLE_DOC)
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('lib')->in($libs)
|
||||
->where('lib')->in($libs)
|
||||
->andWhere('vision')->eq($this->config->vision)
|
||||
->andWhere('templateType')->eq('')
|
||||
->andWhere("(status = 'normal' or (status = 'draft' and addedBy='{$this->app->user->account}'))")
|
||||
|
||||
Reference in New Issue
Block a user