chore: switch domain feature sticky to user

This commit is contained in:
Colin Darie 2024-05-15 10:10:37 +02:00
parent b93d9fa992
commit 7f25f1eba1
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -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