From 90e8e04e08938b11075c6b0419ca38321bc565cc Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 20 Dec 2023 00:15:45 +0100 Subject: [PATCH] Fixed test --- app/controllers/api/projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index c31861cc12..fd52608bff 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1657,7 +1657,7 @@ App::post('/v1/projects/:projectId/smtp/tests') $smtp = $project->getAttribute('smtp', []); $smtpEnabled = $smtp['enabled'] ?? false; - if ($smtpEnabled) { + if (!$smtpEnabled) { throw new Exception(Exception::GENERAL_SMTP_DISABLED, 'SMTP disabled'); }