refactor: 增加runas保护

This commit is contained in:
CaptainB 2023-04-23 18:00:55 +08:00 committed by 刘瑞斌
parent 176a63b6df
commit a2ff72234d
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class HttpHeaderUtils {
User user = sessionUserThreadLocal.get();
if (user != null) {
if (user != null && SessionUtils.getUser() == null) {
UserDTO userDTO = new UserDTO();
BeanUtils.copyProperties(user, userDTO);
SessionUser sessionUser = SessionUser.fromUser(userDTO, UUID.randomUUID().toString());