Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Minor improvements - Editor template

KrzysztofPajakf0d84381184c
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Editor.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Editor.cshtml
index d7ae264be..c78b049e7 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Editor.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/Editor.cshtml
@@ -3,7 +3,7 @@
@using Grand.SharedKernel.Extensions
@using Grand.Business.Common.Services.Security
@{
- var allowRoxyFileman = await permissionService.Authorize(StandardPermission.HtmlEditorManagePictures);
+ var allowFileman = await permissionService.Authorize(StandardPermission.HtmlEditorManagePictures);
var random = CommonHelper.GenerateRandomInteger();
}
<div id="s-@(random)-summernote" class="summernote" data-name="null" data-file="null" data-format="null">
@@ -85,7 +85,10 @@
['view', ['fullscreen', 'codeview', 'help']],
],
buttons: {
- elfinder: FileManager,
+ @if(allowFileman)
+ {
+ <text> elfinder: FileManager, </text>
+ }
},
callbacks: {
onChange: function (contents) {