mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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");
|
Logger.Information("Start creation of shells");
|
||||||
|
|
||||||
// is there any tenant right now ?
|
// 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
|
// load all tenants, and activate their shell
|
||||||
if (allSettings.Any()) {
|
if (allSettings.Any()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user