Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多租户下角色和授权 #97

Open
gzhcyk opened this issue Oct 17, 2024 · 2 comments
Open

多租户下角色和授权 #97

gzhcyk opened this issue Oct 17, 2024 · 2 comments
Labels
新功能或要求 New feature or request

Comments

@gzhcyk
Copy link
Contributor

gzhcyk commented Oct 17, 2024

1、利用角色的拓展字段(或增加TenantID)来确定角色是哪个客户的
2、客户管理员(有权限创建角色的用户)创建自己的角色强制填充角色拓展字段为客户ID(或TenantID)
3、租户角色可选的权限为客户管理员(有权限创建角色的用户)所拥有的权限,提交后需要注意判断不能越界授权

@codekgithub
Copy link
Contributor

部门表是不是也考虑加个TenantID字段
角色完善下数据权限(本部门、部门及以下、全部、个人、自定义)

@nnhy
Copy link
Member

nnhy commented Nov 24, 2024

部门表是不是也考虑加个TenantID字段 角色完善下数据权限(本部门、部门及以下、全部、个人、自定义)

部门表本身带有 TenantId 字段

    <Column Name="TenantId" DataType="Int32" Map="Tenant@Id@$" Description="租户" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
新功能或要求 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants