diff --git a/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Menus/BasketsMenuContributor.cs b/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Menus/BasketsMenuContributor.cs index fa97a0a5..9badbcb4 100644 --- a/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Menus/BasketsMenuContributor.cs +++ b/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Menus/BasketsMenuContributor.cs @@ -1,9 +1,6 @@ using System.Collections.Generic; -using System.Security.Principal; using System.Threading.Tasks; using EasyAbp.EShop.Plugins.Baskets.Localization; -using EasyAbp.EShop.Plugins.Baskets.Permissions; -using Volo.Abp; using Volo.Abp.UI.Navigation; namespace EasyAbp.EShop.Plugins.Baskets.Web.Menus @@ -24,12 +21,9 @@ namespace EasyAbp.EShop.Plugins.Baskets.Web.Menus var basketManagementMenuItem = new ApplicationMenuItem(BasketsMenus.Prefix, l["Menu:BasketManagement"]); - if (context.GetHttpContext().User.Identity.FindUserId() == null || await context.IsGrantedAsync(BasketsPermissions.BasketItem.Default)) - { - basketManagementMenuItem.AddItem( - new ApplicationMenuItem(BasketsMenus.BasketItem, l["Menu:BasketItem"], $"/EShop/Plugins/Baskets/BasketItems/BasketItem?basketName={BasketsConsts.DefaultBasketName}&userId=") - ); - } + basketManagementMenuItem.AddItem( + new ApplicationMenuItem(BasketsMenus.BasketItem, l["Menu:BasketItem"], $"/EShop/Plugins/Baskets/BasketItems/BasketItem?basketName={BasketsConsts.DefaultBasketName}&userId=") + ); if (!basketManagementMenuItem.Items.IsNullOrEmpty()) {