From 33cf6cdd2b5babd0a0545db02342d01d37cd701c Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 21 Jul 2018 13:28:43 +0200 Subject: [PATCH] Create IS_TENANT_SITE context variable --- templates/gdpr/gdpr_banner.html | 2 +- utils/context_processor.py | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/templates/gdpr/gdpr_banner.html b/templates/gdpr/gdpr_banner.html index 94f401e8..001fb408 100644 --- a/templates/gdpr/gdpr_banner.html +++ b/templates/gdpr/gdpr_banner.html @@ -1,4 +1,4 @@ -{% if request.COOKIES.gdpr_accepted %} +{% if request.COOKIES.gdpr_accepted or IS_TENANT_SITE %} {% else %}