fix: 修复userinfo接口报错

This commit is contained in:
Captain.B 2021-05-26 12:35:45 +08:00 committed by 刘瑞斌
parent 058b31af01
commit 07dbb1ef23
1 changed files with 0 additions and 3 deletions

View File

@ -177,9 +177,6 @@ public class UserController {
@GetMapping("/info/{userId}")
public UserDTO getUserInfo(@PathVariable(value = "userId") String userId) {
if (!StringUtils.equals(userId, SessionUtils.getUserId())) {
MSException.throwException(Translator.get("not_authorized"));
}
return userService.getUserInfo(userId);
}