kb portals

This commit is contained in:
yuri
2016-02-11 12:29:12 +02:00
parent 79a29531e9
commit db49af84f4
10 changed files with 57 additions and 7 deletions
@@ -44,6 +44,12 @@ class KnowledgeBaseArticle extends \Espo\Core\SelectManagers\Base
if ($this->checkIsPortal()) {
$this->filterPublished($result);
$this->setDistinct(true, $result);
$this->addJoin('portals', $result);
$this->addAndWhere(array(
'portals.id' => $this->getUser()->get('portalId')
), $result);
}
}