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