From 75f273c6fa99760ce6a5165bcbcd4bca0e5f96b6 Mon Sep 17 00:00:00 2001 From: "Stanko K.R." Date: Thu, 4 Dec 2025 18:49:14 +0100 Subject: [PATCH] Fix Current not setting a session in some contexts --- app/models/current.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/current.rb b/app/models/current.rb index 786e5e89b..94ef9688c 100644 --- a/app/models/current.rb +++ b/app/models/current.rb @@ -5,7 +5,7 @@ class Current < ActiveSupport::CurrentAttributes def session=(value) super(value) - if value.present? && account.present? + if value.present? self.identity = session.identity end end