From b0857ebbe41d9b52bc922f7cb9e36074799cb11f Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 24 Oct 2024 13:36:02 +0800 Subject: [PATCH] fix(setting-management): fix host email setting --- .../LINGYUN/Abp/SettingManagement/SettingAppService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs index b187fd163..825061745 100644 --- a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs +++ b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs @@ -396,7 +396,8 @@ public class SettingAppService : ApplicationService, ISettingAppService, ISettin #region 邮件设置 - if (await FeatureChecker.IsEnabledAsync(true, [SettingManagementFeatures.Enable, SettingManagementFeatures.AllowChangingEmailSettings])) + if (!CurrentTenant.IsAvailable || + await FeatureChecker.IsEnabledAsync(true, [SettingManagementFeatures.Enable, SettingManagementFeatures.AllowChangingEmailSettings])) { var emailSettingGroup = new SettingGroupDto(L["DisplayName:Emailing"], L["Description:Emailing"]);