refactor: 增加runas保护
This commit is contained in:
parent
176a63b6df
commit
a2ff72234d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue