fixed bugs

This commit is contained in:
vfedosevich 2013-11-08 18:44:45 +03:00
parent 8784e493d5
commit ff9e257362
14 changed files with 55 additions and 118 deletions

View file

@ -109,11 +109,14 @@ namespace WebsitePanel.Providers.Web
ConfigurationElementCollection authoringRulesCollection = authoringRulesSection.GetCollection();
var rules = new List<WebDavFolderRule>();
foreach (var rule in authoringRulesCollection)
try
{
rules.Add(rule.ToWebDavFolderRule());
foreach (var rule in authoringRulesCollection)
{
rules.Add(rule.ToWebDavFolderRule());
}
}
catch { }
return rules.ToArray();
}
@ -128,10 +131,6 @@ namespace WebsitePanel.Providers.Web
{
Configuration config = serverManager.GetApplicationHostConfiguration();
//ConfigurationSection authoringRulesSection = config.GetSection("system.webServer/webdav/authoringRules", string.Format("{0}/{1}/{2}", _usersDomain, organizationId, folder));
//ConfigurationElementCollection authoringRulesCollection = authoringRulesSection.GetCollection();
//authoringRulesCollection.Clear();
config.RemoveLocationPath(string.Format("{0}/{1}/{2}", _usersDomain, organizationId, folder));
serverManager.CommitChanges();