فتح مغلق

Make SaaS menu Item invisible / turn off #1854


User avatar
0
Jesse.Thomas@condoauthorityontario.ca خلقت

Hi,

I would like to remove the SaaS Menu item from the main menu when logged in as Admin. Is there a way for me to turn it / make it invisible using the app.config or some other method?

Thank you,

Jesse

  • ABP Framework version: Latest
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

2 إجابة (إجابات)
  • User Avatar
    0
    maliming خلقت
    فريق الدعم Fullstack Developer

    hi

    You can find the saas menu and remve it in your MenuContributor class.

    //SaasHostMenuNames.GroupName
    //SaasHostMenus.GroupName
    
  • User Avatar
    0
    Jesse.Thomas@condoauthorityontario.ca خلقت

    thanks maliming....I used the following code in the MenuContributor class to remove the item:

    context.Menu.TryRemoveMenuItem(SaasHostMenus.GroupName);

    Thanks,

    Jesse

Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11