From 4a0aa1bca0cc36536ee3d4635d25e63a427e0fd2 Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 20 Apr 2016 10:32:05 +0300 Subject: [PATCH] global search fix --- application/Espo/Services/GlobalSearch.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/Espo/Services/GlobalSearch.php b/application/Espo/Services/GlobalSearch.php index a79cde00e2..8709b97683 100644 --- a/application/Espo/Services/GlobalSearch.php +++ b/application/Espo/Services/GlobalSearch.php @@ -74,6 +74,9 @@ class GlobalSearch extends \Espo\Core\Services\Base if (!$this->getAcl()->checkScope($entityType, 'read')) { continue; } + if (!$this->getMetadata()->get('scopes.' . $entityType)) { + continue; + } $params = array( 'select' => ['id', 'name', ['VALUE:' . $entityType, 'entityType']] );