From 863fce38fadc68771d76c0a0afbb5173847880b3 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Mon, 8 Jun 2020 21:15:01 +0100 Subject: [PATCH] Fixed #3479 --- src/Ombi/Controllers/V1/SettingsController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ombi/Controllers/V1/SettingsController.cs b/src/Ombi/Controllers/V1/SettingsController.cs index ac25fd123..5e61de53b 100644 --- a/src/Ombi/Controllers/V1/SettingsController.cs +++ b/src/Ombi/Controllers/V1/SettingsController.cs @@ -1143,6 +1143,10 @@ namespace Ombi.Controllers.V1 // Make sure we do not display the newsletter templates = templates.Where(x => x.NotificationType != NotificationType.Newsletter); } + if (agent != NotificationAgent.Email) + { + templates = templates.Where(x => x.NotificationType != NotificationType.WelcomeEmail); + } var tem = templates.ToList(); return tem.OrderBy(x => x.NotificationType.ToString()).ToList(); }