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

数据权限配置冲突问题 #1542

Closed
huyaru opened this issue Aug 4, 2020 · 2 comments
Closed

数据权限配置冲突问题 #1542

huyaru opened this issue Aug 4, 2020 · 2 comments

Comments

@huyaru
Copy link

huyaru commented Aug 4, 2020

版本号:

2.2.1

问题描述:

用户多角色时,不同角色数据权限配置,导致权限冲突,
例:部门管理角色,拥有查看部门内所有数据权限,
普通用户,拥有查看属于自己的数据权限,
当用户同时拥有两种权限时,权限冲突,导致只能显示最低级别的权限控制

截图&代码:

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

目前的确是按照授权生效的方式进行设计的,数据权限是授权了,才生效

@fjchenxd
Copy link

fjchenxd commented Nov 11, 2022

目前的确是按照授权生效的方式进行设计的,数据权限是授权了,才生效

我也遇到同样的困惑,用户授权多个角色,每个角色有自己的条件限制,之间是同时满足的关系,但不同角色之前应该是或的关系,用SQL表示应该是 (角色1条件1 and 角色1条件2 and 角色1条件3)or (角色2条件1 and 角色2条件2 and 角色2条件3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants