From 52d5a2695cbb8f9191b9e0ca72853762ee66f886 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Mon, 9 May 2011 13:37:25 -0700 Subject: [PATCH] #17765: Fixing security notification in Shape Tracing Work Items: 17765 --HG-- branch : 1.x --- .../Orchard.DesignerTools/Controllers/AlternateController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.DesignerTools/Controllers/AlternateController.cs b/src/Orchard.Web/Modules/Orchard.DesignerTools/Controllers/AlternateController.cs index 81a949b27..8949d7217 100644 --- a/src/Orchard.Web/Modules/Orchard.DesignerTools/Controllers/AlternateController.cs +++ b/src/Orchard.Web/Modules/Orchard.DesignerTools/Controllers/AlternateController.cs @@ -23,7 +23,7 @@ namespace Orchard.DesignerTools.Controllers public Localizer T { get; set; } public ActionResult Create(string template, string alternate, string returnUrl) { - if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to create templates")) && !Request.IsLocal) + if (!Request.IsLocal && !Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to create templates"))) return new HttpUnauthorizedResult(); alternate = alternate.Replace("__", "-").Replace("_", ".");