mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-17 10:09:24 +00:00
Merge pull request #1675 from sbwalker/dev
improve validation for public site settings
This commit is contained in:
commit
20d81bee00
@ -113,9 +113,12 @@ namespace Oqtane.Services
|
||||
bool ispublic = false;
|
||||
if (value.StartsWith("[Public]"))
|
||||
{
|
||||
value = value.Substring(8); // remove [Public]
|
||||
if (entityName == EntityNames.Site)
|
||||
{
|
||||
ispublic = true;
|
||||
}
|
||||
value = value.Substring(8); // remove [Public]
|
||||
}
|
||||
|
||||
Setting setting = settingsList.FirstOrDefault(item => item.SettingName.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase));
|
||||
if (setting == null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user