From efd0505eadf62feda3929bc9802ddcab992430d6 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 17 Oct 2019 16:59:37 +0300 Subject: [PATCH] fix --- application/Espo/Controllers/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Controllers/Email.php b/application/Espo/Controllers/Email.php index 2a2787461b..6d1263230e 100644 --- a/application/Espo/Controllers/Email.php +++ b/application/Espo/Controllers/Email.php @@ -75,7 +75,7 @@ class Email extends \Espo\Core\Controllers\Record throw new NotFound(); } if (!$this->getUser()->isAdmin()) { - if ($emailAccount->get('assigniedUserId') !== $this->getUser()->id) { + if ($emailAccount->get('assignedUserId') !== $this->getUser()->id) { throw new Forbidden(); } }