portal kb acl published check

This commit is contained in:
yuri
2017-04-14 15:12:29 +03:00
parent 7b2bbcfd05
commit c5fa26ffcb
@@ -41,6 +41,8 @@ class KnowledgeBaseArticle extends \Espo\Core\AclPortal\Base
return false;
}
if ($entity->get('status') !== 'Published') return false;
$portalIdList = $entity->getLinkMultipleIdList('portals');
if ($user->get('portalId') && !in_array($user->get('portalId'), $portalIdList)) {