pull/3595/head^2
Jamie Rees 5 years ago
parent cf9edfa9d3
commit 863fce38fa

@ -1143,6 +1143,10 @@ namespace Ombi.Controllers.V1
// Make sure we do not display the newsletter // Make sure we do not display the newsletter
templates = templates.Where(x => x.NotificationType != NotificationType.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(); var tem = templates.ToList();
return tem.OrderBy(x => x.NotificationType.ToString()).ToList(); return tem.OrderBy(x => x.NotificationType.ToString()).ToList();
} }

Loading…
Cancel
Save