数据权限添加all处理
This commit is contained in:
parent
c88fd28601
commit
4e86434cd2
@ -274,7 +274,9 @@ public abstract class AbstractService {
|
||||
}
|
||||
String dataAuthority = currentUser.getDataAuthority();
|
||||
List<String> dataAuthorityUserIds = currentUser.getDataAuthorityUserIds();
|
||||
if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.SELF.getDataAuthorityType(), dataAuthority)) {
|
||||
if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.ALL.getDataAuthorityType(), dataAuthority)) {
|
||||
return;
|
||||
} else if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.SELF.getDataAuthorityType(), dataAuthority)) {
|
||||
params.put(ISystemConstant.DATA_AUTHORITY, dataAuthority);
|
||||
params.put(ISystemConstant.DATA_CREATOR, currentUser.getUserId());
|
||||
} else if (org.apache.commons.lang3.StringUtils.equals(RoleDataAuthorityEnum.DEPARTMENT.getDataAuthorityType(), dataAuthority)
|
||||
|
Loading…
Reference in New Issue
Block a user