Skip to content

Commit a472753

Browse files
committed
show error when module dous not support mvc pl for page editors
1 parent 6c31689 commit a472753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DNN Platform/DotNetNuke.Web.MvcPipeline/Containers/SkinHelpers.Content.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace DotNetNuke.Web.MvcPipeline.Containers
1010

1111
using DotNetNuke.Common;
1212
using DotNetNuke.Framework.JavaScriptLibraries;
13+
using DotNetNuke.Security.Permissions;
1314
using DotNetNuke.Web.Client.ClientResourceManagement;
1415
using DotNetNuke.Web.MvcPipeline;
1516
using DotNetNuke.Web.MvcPipeline.Framework.JavascriptLibraries;
@@ -63,7 +64,7 @@ public static IHtmlString Content(this HtmlHelper<ContainerModel> htmlHelper)
6364
}
6465
catch (Exception ex)
6566
{
66-
if (model.EditMode)
67+
if (TabPermissionController.CanAdminPage())
6768
{
6869
moduleDiv.InnerHtml += "<div class=\"dnnFormMessage dnnFormError\"> Error loading module: " + ex.Message + "</div>";
6970
}

0 commit comments

Comments
 (0)