Commit a4d3e82d0f98d917933c8048d67b54f1d98d6b65

Authored by jiangjiazhi
1 parent 5443ae6c7d

增加

Showing 1 changed file with 6 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java View file @ a4d3e82
... ... @@ -527,7 +527,7 @@
527 527 return;
528 528 }
529 529  
530   - //根据当前登录的用户判断是否 有管理员的权限
  530 + /* //根据当前登录的用户判断是否 有管理员的权限
531 531 List<String> list = userRoleMapsService.queryUserRoleName(loginState.getId());
532 532 if(CollectionUtils.isEmpty(list) ||!list.contains(ADMIN)){
533 533 Map<String, Object> map = new HashMap<>();
... ... @@ -535,7 +535,7 @@
535 535 map.put(ResultUtils.ERROR_MSG, "你没有足够的权限.");
536 536 writeJson(response, JsonUtil.obj2JsonString(map));
537 537 return;
538   - }
  538 + }*/
539 539 if (user != null) {
540 540  
541 541 //检查注册账户是否存在
542 542  
... ... @@ -641,14 +641,14 @@
641 641 return;
642 642 }
643 643 //根据当前登录的用户判断是否 有管理员的权限
644   - List<String> list = userRoleMapsService.queryUserRoleName(loginState.getId());
  644 + /* List<String> list = userRoleMapsService.queryUserRoleName(loginState.getId());
645 645 if(CollectionUtils.isEmpty(list) ||!list.contains(ADMIN)){
646 646 Map<String, Object> map = new HashMap<>();
647 647 map.put(ResultUtils.ERROR_CODE, ConstantInterface.PARAMETER_ERROR);
648 648 map.put(ResultUtils.ERROR_MSG, "你没有足够的权限.");
649 649 writeJson(response, JsonUtil.obj2JsonString(map));
650 650 return;
651   - }
  651 + }*/
652 652 if (user != null) {
653 653  
654 654 //检查注册账户是否存在
655 655  
... ... @@ -846,14 +846,14 @@
846 846 return;
847 847 }
848 848 //根据当前登录的用户判断是否 有管理员的权限
849   - List<String> list = userRoleMapsService.queryUserRoleName(loginState.getId());
  849 + /* List<String> list = userRoleMapsService.queryUserRoleName(loginState.getId());
850 850 if(CollectionUtils.isEmpty(list) ||!list.contains(ADMIN)){
851 851 Map<String, Object> map = new HashMap<>();
852 852 map.put(ResultUtils.ERROR_CODE, ConstantInterface.PARAMETER_ERROR);
853 853 map.put(ResultUtils.ERROR_MSG, "你没有足够的权限.");
854 854 writeJson(response, JsonUtil.obj2JsonString(map));
855 855 return;
856   - }
  856 + }*/
857 857 if(null == users) {
858 858 Map<String, Object> map = new HashMap<>();
859 859 map.put(ResultUtils.ERROR_CODE, ConstantInterface.PARAMETER_ERROR);