#17765: Fixing security notification in Shape Tracing

Work Items: 17765

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-05-09 13:37:25 -07:00
parent a976b38388
commit 52d5a2695c

View File

@@ -23,7 +23,7 @@ namespace Orchard.DesignerTools.Controllers
public Localizer T { get; set; } public Localizer T { get; set; }
public ActionResult Create(string template, string alternate, string returnUrl) { 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(); return new HttpUnauthorizedResult();
alternate = alternate.Replace("__", "-").Replace("_", "."); alternate = alternate.Replace("__", "-").Replace("_", ".");