Open Closed

How to hide SaaS menu item #6081


User avatar
0
dzungle created
  • ABP Framework version: v7.4.0
  • UI Type: Angular
  • Database System: MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi Support Team,

I have disabled MultiTenancy in the server side.

I suppose the SaaS menu item would disappear in the client side. But it's still there.

Is this a bug? Please, guide me how to hide the SaaS menu item. Thank you.


4 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    The SaaS Module is distinct from multi-tenancy. It deals with the management of tenants and editions. Therefore, if you wish to remove or disable this module for a client, you should remove the SaasConfigModule.forRoot() line from app.module.ts. This is a design decision. The host can opt to disable multi-tenancy, but the database and other modules might still have or desire management capabilities. Hence, it is decoupled

  • User Avatar
    0
    dzungle created

    By saying "The host can opt to disable multi-tenancy", do you mean the host side can disable multi-tenancy in UI? Can you provide me the UI to do this?

    And so, what is this for?

  • User Avatar
    0
    jfistelmann created

    As far as I know, there is no UI to configure if multitenancy is enabled. If you do not want multitenancy:

    • Option A: set MultiTenancyConsts.IsEnabled to false and hide the SaaS menu through your menu contributor
    • Option B: Delete everything related to multitenancy (along with related package references) and create a new migration
  • User Avatar
    0
    dzungle created

    Hi, I suppose you guys should take this requirement as an improvement.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15