mirror of https://gitee.com/y_project/RuoYi.git
优化数据权限代码
parent
4f5bf990bf
commit
116bed00a5
|
@ -158,9 +158,9 @@ public class SysLoginService
|
|||
public void setRolePermission(SysUser user)
|
||||
{
|
||||
List<SysRole> roles = user.getRoles();
|
||||
if (!roles.isEmpty() && roles.size() > 1)
|
||||
if (!roles.isEmpty())
|
||||
{
|
||||
// 多角色设置permissions属性,以便数据权限匹配权限
|
||||
// 设置permissions属性,以便数据权限匹配权限
|
||||
for (SysRole role : roles)
|
||||
{
|
||||
Set<String> rolePerms = menuService.selectPermsByRoleId(role.getRoleId());
|
||||
|
|
Loading…
Reference in New Issue