Skip to content

Commit

Permalink
Merge pull request #1882 from leigh-pointer/#1880GetModuleDefinitionS…
Browse files Browse the repository at this point in the history
…ettings

#1880 Issue with new SettingService
  • Loading branch information
sbwalker authored Dec 16, 2021
2 parents bf56c2a + e034811 commit e22606a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Oqtane.Client/Services/SettingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,20 @@ public async Task UpdateSettingsAsync(Dictionary<string, string> settings, strin
bool ispublic = false;
if (value.StartsWith("[Public]"))
{
if (entityName == EntityNames.Site)
switch (entityName)
{
ispublic = true;
case EntityNames.Site:
case EntityNames.ModuleDefinition:
ispublic = true;
break;
default:
ispublic = false;
break;
}
value = value.Substring(8); // remove [Public]
value = value.Substring(8); // remove [Public]
}


Setting setting = settingsList.FirstOrDefault(item => item.SettingName.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase));
if (setting == null)
{
Expand Down

0 comments on commit e22606a

Please sign in to comment.