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

@ -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();
}

Loading…
Cancel
Save