|
@@ -56,9 +56,7 @@ public class UserController extends BaseController {
|
|
|
@PostMapping("/edit")
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult<Void> edit(@RequestBody UserEditBo bo) throws IllegalAccessException {
|
|
public AjaxResult<Void> edit(@RequestBody UserEditBo bo) throws IllegalAccessException {
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- if(loginUser.getUser().getUserId()!=bo.getUserId()){
|
|
|
|
|
- return AjaxResult.error("无权限修改");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
bo.setNull();
|
|
bo.setNull();
|
|
|
return toAjax(iUserService.updateByEditBo(bo) ? 1 : 0);
|
|
return toAjax(iUserService.updateByEditBo(bo) ? 1 : 0);
|
|
|
}
|
|
}
|