mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 21:32:14 +08:00
#21158: Preventing disabled shells from being started.
Work Item: 21158
This commit is contained in:
@@ -129,7 +129,9 @@ namespace Orchard.Environment {
|
||||
Logger.Information("Start creation of shells");
|
||||
|
||||
// is there any tenant right now ?
|
||||
var allSettings = _shellSettingsManager.LoadSettings().ToArray();
|
||||
var allSettings = _shellSettingsManager.LoadSettings()
|
||||
.Where(settings => settings.State == TenantState.Running || settings.State == TenantState.Uninitialized)
|
||||
.ToArray();
|
||||
|
||||
// load all tenants, and activate their shell
|
||||
if (allSettings.Any()) {
|
||||
|
||||
Reference in New Issue
Block a user