mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 19:17:13 +08:00
committed by
Sébastien Ros
parent
134bac44c3
commit
d2889e46e3
@@ -22,7 +22,7 @@ namespace Orchard.ContentTypes {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpgradeFrom1() {
|
||||
public int UpdateFrom1() {
|
||||
foreach (var typeDefinition in _contentDefinitionManager.ListTypeDefinitions()) {
|
||||
if (typeDefinition.Settings.ContainsKey("ContentTypeSettings.Creatable") && Convert.ToBoolean(typeDefinition.Settings["ContentTypeSettings.Creatable"], CultureInfo.InvariantCulture)) {
|
||||
typeDefinition.Settings["ContentTypeSettings.Securable"] = "True";
|
||||
|
||||
Reference in New Issue
Block a user