From 501210861c408f2f27cbcb18cdaf1ca6f20ca852 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 30 May 2022 12:02:23 -0400 Subject: [PATCH] fix is_saas_domain to work for both apex & www modified: make_post_sell/request_methods.py --- make_post_sell/request_methods.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/make_post_sell/request_methods.py b/make_post_sell/request_methods.py index dd6c2ed..42ea988 100644 --- a/make_post_sell/request_methods.py +++ b/make_post_sell/request_methods.py @@ -180,12 +180,9 @@ def includeme(config): * show only certain buttons on the SaaS domain. """ root_domain = request.app.get("root_domain") - return ( - root_domain - and request.domain.endswith(root_domain) - and request.app_domain == root_domain - ) - + if root_domain: + return request.domain.endswith(root_domain) + return False # Register functions to app config as request methods. # To prevent multiple DB lookups, cache result with `reify=True`.