Skip to content

EspoCRM – Open Source CRM Application

fix email send test no password

Yuri Kuznetsov1d685dc7723a
diff --git a/application/Espo/Tools/Email/SendService.php b/application/Espo/Tools/Email/SendService.php
index 1de255407c..06790aaa37 100644
--- a/application/Espo/Tools/Email/SendService.php
+++ b/application/Espo/Tools/Email/SendService.php
@@ -547,7 +547,7 @@ class SendService
if (
!$this->user->isAdmin() &&
- $personalAccount->getUser()->getId() !== $id
+ $personalAccount->getUser()->getId() !== $this->user->getId()
) {
throw new Forbidden();
}