diff --git a/application/Espo/Controllers/LeadCapture.php b/application/Espo/Controllers/LeadCapture.php index 4beca43eb0..2671e69bac 100644 --- a/application/Espo/Controllers/LeadCapture.php +++ b/application/Espo/Controllers/LeadCapture.php @@ -29,8 +29,6 @@ namespace Espo\Controllers; -use Espo\Core\Exceptions\ForbiddenSilent; - use Espo\Core\Exceptions\Forbidden; use Espo\Core\Exceptions\BadRequest; use Espo\Core\Exceptions\NotFound; @@ -97,7 +95,7 @@ class LeadCapture extends Record /** * @throws BadRequest * @throws NotFound - * @throws ForbiddenSilent + * @throws Forbidden */ public function postActionGenerateNewApiKey(Request $request): stdClass { diff --git a/application/Espo/Tools/LeadCapture/Service.php b/application/Espo/Tools/LeadCapture/Service.php index 4a32c8f2ab..d81b2044fe 100644 --- a/application/Espo/Tools/LeadCapture/Service.php +++ b/application/Espo/Tools/LeadCapture/Service.php @@ -69,6 +69,7 @@ class Service /** * @throws ForbiddenSilent * @throws NotFound + * @throws Forbidden */ public function generateNewApiKeyForEntity(string $id): Entity {