mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #3479
This commit is contained in:
parent
cf9edfa9d3
commit
863fce38fa
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue