|
|
|
@ -21,8 +21,7 @@ namespace Volo.Abp.SettingManagement.Blazor.Menus
|
|
|
|
|
{
|
|
|
|
|
var settingManagementPageOptions = context.ServiceProvider.GetRequiredService<IOptions<SettingManagementComponentOptions>>().Value;
|
|
|
|
|
var settingPageCreationContext = new SettingComponentCreationContext(context.ServiceProvider);
|
|
|
|
|
if (
|
|
|
|
|
!settingManagementPageOptions.Contributors.Any() ||
|
|
|
|
|
if (!settingManagementPageOptions.Contributors.Any() ||
|
|
|
|
|
!(await CheckAnyOfPagePermissionsGranted(settingManagementPageOptions, settingPageCreationContext))
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
@ -31,6 +30,10 @@ namespace Volo.Abp.SettingManagement.Blazor.Menus
|
|
|
|
|
|
|
|
|
|
var l = context.GetLocalizer<AbpSettingManagementResource>();
|
|
|
|
|
|
|
|
|
|
/* This may happen if MVC UI is being used in the same application.
|
|
|
|
|
* In this case, we are removing the MVC setting management UI. */
|
|
|
|
|
context.Menu.GetAdministration().TryRemoveMenuItem(SettingManagementMenus.GroupName);
|
|
|
|
|
|
|
|
|
|
context.Menu
|
|
|
|
|
.GetAdministration()
|
|
|
|
|
.AddItem(
|
|
|
|
|