Merge pull request #10419 from colinux/switch-domain-feature-user

Tech: l’affichage du bandeau .gouv.fr sticky à l'user
This commit is contained in:
Colin Darie 2024-05-15 15:41:48 +00:00 committed by GitHub
commit 241da41c4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ module ApplicationHelper
end end
def switch_domain_enabled?(request) 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 end
def html_lang def html_lang