Comments (13)
Maybe SettingUI could provide extra permission and page to manage the global setting values. (the permission is tenant-only, of course).
After some consideration, I think the global setting management feature is not reasonable to exist. If an app admin wants to manage a global setting value, he can change the default value or implement the global values management feature himself. All in all, we should not provide an unreasonable design.
from abp.settingui.
Did you mean a host-side admin controlling tenant's setting values? If so, you should not do that, the host is not the master of tenants, please think of it as a tenant without TenantId.
from abp.settingui.
No, what I mean is tenants themself controlling the setting ontop of users. So the tenant "admins" can control the settings, which will be inherited by the users.
So tenant-settings.
Example:
Tenant A needs background color: #000000 from setting
tenant B needs background color: #efefef from setting
Both which will be applied for all users which are either on Tenant A or Tenant B
from abp.settingui.
Got it. I think you found a bug.
Hi @wakuflair, I try to grant the setting UI's permission to a tenant-side user, when he changes a setting value, his behavior affects the global setting value:
The expected result is that a tenant-side setting data is created, is that so?
from abp.settingui.
As far as I have seen like the comment above from @gdlcf88, the settings are also global for all users, so is this intended, or actual missing stuff or a bug? :D
from abp.settingui.
Hi guys
Yes the settings value are set by using "global", for now.
Other scopes(Tenant, User, eg.) are on the roadmap.
from abp.settingui.
For now, an admin user (from the host or one of the tenants) can grant the setting management permission himself and control the global values. It is dangerous!
Tenants and the host should only control the setting values in their own scope. Even a host admin should not be allowed to change the global values since generally the host is not the master of all the tenants. Maybe SettingUI could provide extra permission and page to manage the global setting values. (the permission is tenant-only, of course).
But it seems ABP has no way to control the setting values for only the host: abpframework/abp#4368
from abp.settingui.
About the user-side setting values management, I have these ideas:
- Provide a dedicated page and permission for users to control the setting values for themself.
- Show only the setting items with
IsVisibleToClients == true
.
from abp.settingui.
he can change the default value or implement the global values management feature himself
Of course he can. But SettingUI is supposed to provide an easy way to set settings value.
For example: An admin wants to set the theme of the entire website through UI.
from abp.settingui.
For example: An admin wants to set the theme of the entire website through UI.
He can only change the setting value of the current tenant (for the host-side, the TenantId == null), instead of the global setting value. Because nobody has permission to change a global setting value in ABP multi-tenant design.
from abp.settingui.
Is this way available for single tenant applications?
from abp.settingui.
I think so, since setting values of single-tenant apps (or we call it host-only apps) will be affected by the setting ProviderName == T
with ProviderKey == null
.
from abp.settingui.
OK. I'll change SetGlobalAsync
to SetForCurrentTenantAsync
from abp.settingui.
Related Issues (20)
- An exception occurred when the setting was saved
- 出现两个邮件设置?
- Release new version HOT 3
- The ABP commercial setting management reference this module throw an exception HOT 1
- KeyNotFoundException: The given key 'Group1' was not present in the dictionary. HOT 6
- 升级到abp 4.2.2跑不起来
- Cannot compact with the setting management page for abp commercial 4.3.0-rc.1 HOT 1
- 不知道发生了什么,我的abp是4.2.2的mvc 分层的那种,请大佬指点,我是按照配的,各个模块都已经注入了。 HOT 2
- Admin can be locked out
- How to Remove Existing "Emailing" Settings? HOT 2
- Does it support Blazor server UI? HOT 4
- Not compatible with version 6.0.2? HOT 2
- Localizable strings for setting groups HOT 3
- Perform setting save validation HOT 3
- 设置布尔类型的时候,会报错
- 本地调试可以,部署后swagger正常,但是页面访问不了
- Upgrade abp version to 6.0.1 HOT 1
- Basic Theme NullReferenceException HOT 5
- 大佬,有计划升级到abp7.0吗? HOT 1
- When saving, support parameter setting value provider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abp.settingui.