自定义数据权限不排除重复

master
RuoYi 2022-07-26 14:43:09 +08:00
parent 289161b8c6
commit 3f0a34e20f
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.exception;
*/
public class GlobalException extends RuntimeException
{
private static final long serialVersionUID = 1L;
/**
@ -45,6 +44,7 @@ public class GlobalException extends RuntimeException
return this;
}
@Override
public String getMessage()
{
return message;

View File

@ -44,6 +44,7 @@ public final class ServiceException extends RuntimeException
return this;
}
@Override
public String getMessage()
{
return message;

View File

@ -90,7 +90,7 @@ public class DataScopeAspect
for (SysRole role : user.getRoles())
{
String dataScope = role.getDataScope();
if (conditions.contains(dataScope))
if (!DATA_SCOPE_CUSTOM.equals(dataScope) && conditions.contains(dataScope))
{
continue;
}