|
@@ -252,6 +252,7 @@ public class RoleService extends ServiceImpl<RoleMapper, Role> {
|
|
|
if (roleList == null || roleList.size() == 0) {
|
|
|
throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
|
|
|
}
|
|
|
+
|
|
|
Role role = roleList.stream().filter(item -> item.getRoleType().equals(1) || item.getRoleType().equals(2) ||item.getRoleType().equals(3)).findFirst().orElse(null);
|
|
|
if (role == null) {
|
|
|
throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
|
|
@@ -266,7 +267,7 @@ public class RoleService extends ServiceImpl<RoleMapper, Role> {
|
|
|
if (roleList == null || roleList.size() == 0) {
|
|
|
throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
|
|
|
}
|
|
|
- Role role = roleList.stream().filter(item -> item.getRoleType().equals(1) || item.getRoleType().equals(2)).findFirst().orElse(null);
|
|
|
+ Role role = roleList.stream().filter(item -> item.getRoleType().equals(1) || item.getRoleType().equals(2) ||item.getRoleType().equals(3)).findFirst().orElse(null);
|
|
|
if (role == null) {
|
|
|
throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
|
|
|
}
|