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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor fix for store / acl limitations
PatrykPorabik312a730bc39c
diff --git a/src/Web/Grand.Web.Admin/Controllers/CommonController.cs b/src/Web/Grand.Web.Admin/Controllers/CommonController.csindex 5b53163e0..69b345912 100644--- a/src/Web/Grand.Web.Admin/Controllers/CommonController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/CommonController.cs@@ -277,14 +277,14 @@ namespace Grand.Web.Admin.Controllers});//performance settings- if (!CommonHelper.IgnoreStoreLimitations && (await _storeService.GetAllStores()).Count == 1)+ if (CommonHelper.IgnoreStoreLimitations){model.SystemWarnings.Add(new SystemInfoModel.SystemWarningModel {Level = SystemInfoModel.SystemWarningModel.SystemWarningLevel.Warning,Text = _translationService.GetResource("Admin.System.Warnings.Performance.IgnoreStoreLimitations")});}- if (!CommonHelper.IgnoreAcl)+ if (CommonHelper.IgnoreAcl){model.SystemWarnings.Add(new SystemInfoModel.SystemWarningModel {Level = SystemInfoModel.SystemWarningModel.SystemWarningLevel.Warning,diff --git a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xmlindex c32a8c886..7c10ceb8a 100644--- a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml+++ b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml@@ -12459,6 +12459,12 @@<Resource Name="Admin.System.Warnings.IgnoreStoreLimitations"><Value>In order to use this functionality you have to disable the following setting in the file appsettings.json -> IgnoreStoreLimitations : set to False</Value></Resource>+ <Resource Name="admin.system.warnings.performance.ignoreacl">+ <Value>Customer group (ACL) limitations are ignored</Value>+ </Resource>+ <Resource Name="admin.system.warnings.performance.ignorestorelimitations">+ <Value>Store limitations are ignored</Value>+ </Resource><Resource Name="Admin.System.Warnings.PaymentMethods.NoActive"><Value>You don't have active payment methods</Value></Resource>diff --git a/src/Web/Grand.Web/App_Data/appsettings.json b/src/Web/Grand.Web/App_Data/appsettings.jsonindex 931984983..da320fa92 100644--- a/src/Web/Grand.Web/App_Data/appsettings.json+++ b/src/Web/Grand.Web/App_Data/appsettings.json@@ -123,10 +123,10 @@"LoadAllUrlEntitiesOnStartup": false,/// A value indicating whether to ignore ACL rules- "IgnoreAcl": false,+ "IgnoreAcl": true,//A value indicating whether to ignore "limit per store" rules- "IgnoreStoreLimitations": false,+ "IgnoreStoreLimitations": true,///Enable minimal Progressive Web App."EnableProgressiveWebApp": false,