Don't show the navibar to non-logged in users.
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Wed, 26 Nov 2008 17:44:46 +0000 (18:44 +0100)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Wed, 26 Nov 2008 17:44:46 +0000 (18:44 +0100)
plugin/theme/site.py

index 21d8aa66c017d01608a633a9b5e0cdaf3a97b65c..91c4c262a95dceb5abe19a7bdb8e00ba2ed2807d 100644 (file)
@@ -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