From d3a1db25c24e4e7980f7e22cd964cdf6fe79c77e Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 26 Oct 2023 16:57:22 +0300 Subject: [PATCH] comment --- application/Espo/Core/Record/Service.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/Espo/Core/Record/Service.php b/application/Espo/Core/Record/Service.php index b37eb47503..a85e2aee73 100644 --- a/application/Espo/Core/Record/Service.php +++ b/application/Espo/Core/Record/Service.php @@ -1387,7 +1387,7 @@ class Service implements Crud, } if (!$id || !$link) { - throw new BadRequest; + throw new BadRequest(); } $this->processForbiddenLinkEditCheck($link); @@ -1398,6 +1398,7 @@ class Service implements Crud, throw new NotFound(); } + // Not used link-check deliberately. Only edit access. if (!$this->acl->check($entity, AclTable::ACTION_EDIT)) { throw new Forbidden(); }