Skip to content

Commit

Permalink
Use already existing constant for default tenant name.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Jan 6, 2024
1 parent 3cda6bc commit 5a8dca8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static OrchardCoreBuilder ConfigureSecurityDefaults(
var shellSettings = serviceProvider
.GetRequiredService<IShellHost>()
.GetAllSettings()
.FirstOrDefault(settings => settings.Name == "Default");
.FirstOrDefault(settings => settings.Name == ShellSettings.DefaultShellName);
if (shellSettings?.State == TenantState.Uninitialized) return;
app
Expand Down

0 comments on commit 5a8dca8

Please sign in to comment.