Backport ShowUnroutableContentWarnings to V13 (#18479)

This commit is contained in:
Kenn Jacobsen
2025-02-26 20:13:27 +01:00
committed by GitHub
parent de2114b8c5
commit 5ed09ebefa
2 changed files with 12 additions and 0 deletions

View File

@@ -1278,6 +1278,11 @@ public class ContentController : ContentControllerBase
SimpleNotificationModel globalNotifications,
string[]? successfulCultures)
{
if (_contentSettings.ShowUnroutableContentWarnings is false)
{
return;
}
IContent? content = publishStatus.FirstOrDefault()?.Content;
if (content is null)
{