Skip to content

EspoCRM – Open Source CRM Application

Where permission check

Yuriie9f54dd4dc91
diff --git a/application/Espo/Tools/Stream/RecordService.php b/application/Espo/Tools/Stream/RecordService.php
index 960cb26bfc..df721fdc37 100644
--- a/application/Espo/Tools/Stream/RecordService.php
+++ b/application/Espo/Tools/Stream/RecordService.php
@@ -464,6 +464,7 @@ class RecordService
->from(Attachment::ENTITY_TYPE)
->withSearchParams($searchParams)
->withComplexExpressionsForbidden()
+ ->withWherePermissionCheck()
->buildQueryBuilder()
->where(
Condition::in(