From: Matthijs Kooijman Date: Sun, 8 Jun 2008 12:52:44 +0000 (+0200) Subject: * Show the search box to logged in users. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=f9748f538ba339b0f52c22266614247d1a412419;p=matthijs%2Fprojects%2Fwipi.git * Show the search box to logged in users. --- diff --git a/plugin/theme/exodus.py b/plugin/theme/exodus.py index e5d854d..479a258 100644 --- a/plugin/theme/exodus.py +++ b/plugin/theme/exodus.py @@ -18,6 +18,12 @@ class Theme(ThemeBase): else: return '' + def searchform(self, d): + if self.request.user.valid: + return ThemeBase.searchform(self, d) + else: + return '' + def header(self, d, **kw): """ Assemble wiki header @@ -32,7 +38,7 @@ class Theme(ThemeBase): # Header u'