app/soc/views/models/site.py
changeset 1247 eaf9d539382f
parent 1240 a94c9bcfa05d
child 1303 08433090cff8
--- a/app/soc/views/models/site.py	Sat Feb 07 22:10:19 2009 +0000
+++ b/app/soc/views/models/site.py	Sat Feb 07 22:47:51 2009 +0000
@@ -113,7 +113,7 @@
 
     if entity:
       submenus += document_view.view.getMenusForScope(entity, self._params)
-      if accounts.isDeveloper(id, user):
+      if user and accounts.isDeveloper(id, user):
         submenus += [(redirects.getCreateDocumentRedirect(entity, 'site'),
             "Create a New Document", 'any_access')]