修改会话在未录屏时的审计状态

This commit is contained in:
dushixiang
2021-11-15 21:51:37 +08:00
parent 87b6d1c93f
commit 3fb2edb000
3 changed files with 13 additions and 0 deletions

View File

@ -166,6 +166,10 @@ func SSHEndpoint(c echo.Context) (err error) {
Status: constant.Connecting,
Recording: recording,
}
if sess.Recording == "" {
// 未录屏时无需审计
sess.Reviewed = true
}
// 创建新会话
log.Debugf("创建新会话 %v", sess.ConnectionId)
if err := sessionRepository.UpdateById(&sess, sessionId); err != nil {