From 6ae7e3384b4e4a1b310984b146911fb3c4569ee1 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 26 Nov 2008 18:44:46 +0100 Subject: [PATCH] Don't show the navibar to non-logged in users. --- plugin/theme/site.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/theme/site.py b/plugin/theme/site.py index 21d8aa6..91c4c26 100644 --- a/plugin/theme/site.py +++ b/plugin/theme/site.py @@ -25,6 +25,12 @@ class SiteTheme(ThemeBase): return ThemeBase.searchform(self, d) else: return '' + + def navibar(self, d): + if self.request.user.valid: + return ThemeBase.navibar(self, d) + else: + return '' def header(self, d, **kw): """ Assemble wiki header -- 2.30.2