API获取用户信息时,过滤掉被删除的用户

This commit is contained in:
heavyrian2012
2022-11-09 10:36:52 +08:00
parent 1ef8f94d67
commit 6b7edc713a
3 changed files with 3 additions and 3 deletions
@@ -49,7 +49,7 @@ public class GetUserAction extends AdminAction {
}
RestResult result;
if (user == null) {
if (user == null || user.getDeleted() > 0) {
result = RestResult.resultOf(ErrorCode.ERROR_CODE_NOT_EXIST);
} else {
result = RestResult.ok(InputOutputUserInfo.fromPbUser(user));