mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#17765: Fixing security notification in Shape Tracing
Work Items: 17765 --HG-- branch : 1.x
This commit is contained in:
@@ -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("_", ".");
|
||||||
|
Reference in New Issue
Block a user