Open Closed

Host Settings Apply to all tenants #2276


User avatar
0
bolenton@gmail.com created

By default, all Tenants can control their own settings (Emailing, Identity management, Theme, Account). I don't want each tenant to be able to control those settings independently but rather I want these things to be universal across the app and only the host can change it for everyone. For example: if the host changes the Theme, all tenants should have this theme. In the future, I will add settings that can be controlled by tenants, but the default ones should be controlled only by the host.

What is the best way to implement this design?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can change theProviders of the setting definition, such as using only DefaultValueSettingValueProvider, ConfigurationSettingValueProvider, GlobalSettingValueProvider

    https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/GlobalSettingValueProvider.cs#L9

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09