Fix tests after the removal of memberships

This commit is contained in:
Stanko K.R.
2025-11-13 16:58:17 +01:00
committed by Mike Dalessio
parent 8fa9566c07
commit 34d83aaa7c
27 changed files with 84 additions and 360 deletions
+10 -2
View File
@@ -7,8 +7,16 @@ class Current < ActiveSupport::CurrentAttributes
def session=(value)
super(value)
if value.present? && Current.account.present?
self.user = identity.users.find_by(account: Current.account)
if value.present? && account.present?
self.user = identity.users.find_by(account: account)
end
end
def account=(value)
super(value)
if value.present? && identity.present?
self.user = identity.users.find_by(account: value)
end
end
end