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']] );