1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add option to toggle about page/make some checks on displayed rules

This commit is contained in:
RaidMax
2021-10-10 10:44:18 -05:00
parent 60681458c4
commit 9cfaef2ce5
5 changed files with 44 additions and 24 deletions

View File

@ -5,6 +5,7 @@ namespace WebfrontCore.Extensions
public static class WebfrontExtensions
{
public static bool ShouldUseFallbackBranding(this ApplicationConfiguration appConfig) =>
string.IsNullOrWhiteSpace(appConfig?.CommunityInformation?.Name) || appConfig.CommunityInformation.Name.Contains("IW4MAdmin");
string.IsNullOrWhiteSpace(appConfig?.CommunityInformation?.Name) ||
appConfig.CommunityInformation.Name.Contains("IW4MAdmin") || !appConfig.CommunityInformation.IsEnabled;
}
}