From 7f25f1eba1e40c7b01abae33b8006b82f6912573 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 15 May 2024 10:10:37 +0200 Subject: [PATCH] chore: switch domain feature sticky to user --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3eb353398..71a35dafd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -13,7 +13,7 @@ module ApplicationHelper end def switch_domain_enabled?(request) - request.params.key?(:switch_domain) || Flipper.enabled?(:switch_domain) + request.params.key?(:switch_domain) || Flipper.enabled?(:switch_domain, Current.user) end def html_lang