From: Matthijs Kooijman Date: Wed, 26 Nov 2008 17:44:46 +0000 (+0100) Subject: Don't show the navibar to non-logged in users. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6ae7e3384b4e4a1b310984b146911fb3c4569ee1;p=matthijs%2Fprojects%2Fwipi.git Don't show the navibar to non-logged in users. --- 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