mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix for Issue 19252
--HG-- branch : 1.x
This commit is contained in:
@@ -165,7 +165,7 @@ namespace Orchard.Widgets.Controllers {
|
||||
}
|
||||
|
||||
[HttpPost, ActionName("AddWidget")]
|
||||
public ActionResult AddWidgetPOST(int layerId, string widgetType, string returnUrl) {
|
||||
public ActionResult AddWidgetPOST([Bind(Prefix = "WidgetPart.LayerId")] int layerId, string widgetType, string returnUrl) {
|
||||
if (!IsAuthorizedToManageWidgets())
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
|
Reference in New Issue
Block a user