fix: 修复userinfo接口报错
This commit is contained in:
parent
058b31af01
commit
07dbb1ef23
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue