Skip to content

Commit

Permalink
fix: return after suspending delete session action
Browse files Browse the repository at this point in the history
Without a return the remaining code would be executed, expecting a session_id
in the context which is not present. This results in a panic.
  • Loading branch information
lfleischmann committed Dec 11, 2024
1 parent b469e97 commit 3961837
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/flow_api/flow/profile/action_session_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func (a SessionDelete) Initialize(c flowpilot.InitializationContext) {
deps := a.GetDeps(c)
if !deps.Cfg.Session.ServerSide.Enabled {
c.SuspendAction()
return
}
userModel, ok := c.Get("session_user").(*models.User)
if !ok {
Expand Down

0 comments on commit 3961837

Please sign in to comment.