# HG changeset patch # User Lennard de Rijk # Date 1234383053 0 # Node ID cecb2b35f8051c27cc0d43cc87ece0a4842f0e8f # Parent 4d46b09f3751f0495ddc861775eba312828a2ee4 Added allowsidebar to checkIsDocumentReadable. Note that this means that documents you can't actually read might show up in the sidebar. A todo has been added to fix this. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 4d46b09f3751 -r cecb2b35f805 app/soc/views/helper/access.py --- a/app/soc/views/helper/access.py Wed Feb 11 20:05:33 2009 +0000 +++ b/app/soc/views/helper/access.py Wed Feb 11 20:10:53 2009 +0000 @@ -900,6 +900,7 @@ return + @allowSidebar @allowDeveloper def checkIsDocumentReadable(self, django_args): """Checks whether a document is readable. diff -r 4d46b09f3751 -r cecb2b35f805 app/soc/views/models/document.py --- a/app/soc/views/models/document.py Wed Feb 11 20:05:33 2009 +0000 +++ b/app/soc/views/models/document.py Wed Feb 11 20:10:53 2009 +0000 @@ -161,6 +161,7 @@ # add a link to all featured documents for entity in entities: + #TODO only if a document is readable it might be added submenu = (redirects.getPublicRedirect(entity, self._params), entity.short_name, 'show') submenus.append(submenu)