From 98846adfc978c1725a19e577f4faef88678406f2 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 9 Jun 2020 07:27:09 +0300 Subject: [PATCH] Fixed test --- app/controllers/api/teams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index e235c3536a..a88f8ee2d9 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -341,7 +341,7 @@ $utopia->post('/v1/teams/:teamId/memberships') $mail->AltBody = strip_tags($body->render()); try { - if(APP_MODE_ADMIN === $mode) { // No need in comfirmation when in admin mode + if(!APP_MODE_ADMIN === $mode) { // No need in comfirmation when in admin mode $mail->send(); } } catch (\Exception $error) {