瀏覽代碼

用户只查看本部门数据时,用户管理页面报错

tags/V1.3.3
wanjing 1 年之前
父節點
當前提交
074ede9169
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/query/QueryUserPageListService.java

+ 3
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/query/QueryUserPageListService.java 查看文件

@@ -95,9 +95,9 @@ public class QueryUserPageListService {
* @return
*/
private JsonResult check(User user) {
if (DataPermissionEnum.DEPT.getCode() == user.getDataPermission()) {
return JsonResult.error(QueryUserPageListCodeEnum.ORDINARY_USERS_NO_PERMISSION.getCode(), QueryUserPageListCodeEnum.ORDINARY_USERS_NO_PERMISSION.getMsg());
}
// if (DataPermissionEnum.DEPT.getCode() == user.getDataPermission()) {
// return JsonResult.error(QueryUserPageListCodeEnum.ORDINARY_USERS_NO_PERMISSION.getCode(), QueryUserPageListCodeEnum.ORDINARY_USERS_NO_PERMISSION.getMsg());
// }
return JsonResult.success();
}


Loading…
取消
儲存