From 70daade557c5b37180782d4c8699b80a5d6dda62 Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Tue, 13 Jan 2015 05:12:44 -0800 Subject: [PATCH] webdav portal bug fixes --- .../Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs | 3 +-- .../WebsitePanel.WebDavPortal/Controllers/AccountController.cs | 1 + WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs index bb502e15..d8b9682d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs @@ -35,8 +35,7 @@ namespace WebsitePanel.WebDavPortal routes.MapRoute( name: FileSystemRouteNames.FilePath, url: "{org}/{*pathPart}", - defaults: new { controller = "FileSystem", action = "ShowContent", pathPart = UrlParameter.Optional }, - constraints: new { org = new Constraints.OrganizationRouteConstraint() } + defaults: new { controller = "FileSystem", action = "ShowContent", pathPart = UrlParameter.Optional } ); routes.MapRoute( diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs index 2ce7cb64..5c8e2ab7 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs @@ -12,6 +12,7 @@ using WebsitePanel.WebDav.Core; namespace WebsitePanel.WebDavPortal.Controllers { + [AllowAnonymous] public class AccountController : Controller { private readonly ICryptography _cryptography; diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config index ccb50c45..25d53401 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config @@ -90,7 +90,7 @@ - +