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)
-
0
hi
You can change the
Providers
of the setting definition, such as using onlyDefaultValueSettingValueProvider, ConfigurationSettingValueProvider, GlobalSettingValueProvider
https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/GlobalSettingValueProvider.cs#L9