changeset 1294:44da7b118b02

pages: set `guest_session` in template data when suitable
author Goffi <goffi@goffi.org>
date Fri, 19 Jun 2020 16:47:51 +0200
parents de3b15d68bb6
children 0930b06f022f
files libervia/server/pages.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/server/pages.py	Fri Jun 19 16:47:51 2020 +0200
+++ b/libervia/server/pages.py	Fri Jun 19 16:47:51 2020 +0200
@@ -1368,6 +1368,8 @@
             template_data["own_jid"] = session_data.jid
         if session_data.locale is not None:
             template_data['locale'] = session_data.locale
+        if session_data.guest:
+            template_data['guest_session'] = True
         if self.vhost_root.site_name:
             template_data['site'] = self.vhost_root.site_name
         if self.dyn_data: