# HG changeset patch # User Lennard de Rijk # Date 1247218781 -7200 # Node ID 3a827504940351231828c3b1f961a1aad428dddb # Parent df5939fecaffb1e0415b4b563f45cbf3950bbf89 Added denySidebar to several access checks. diff -r df5939fecaff -r 3a8275049403 app/soc/views/helper/access.py --- a/app/soc/views/helper/access.py Thu Jul 09 23:50:21 2009 +0200 +++ b/app/soc/views/helper/access.py Fri Jul 10 11:39:41 2009 +0200 @@ -1727,6 +1727,7 @@ self.checkMembership('write', document.prefix, document.write_access, django_args) + @denySidebar @allowDeveloper def checkDocumentList(self, django_args): """Checks whether the user is allowed to list documents. @@ -1744,6 +1745,7 @@ if not self.hasMembership(roles, filter): raise out_of_band.AccessViolation(message_fmt=DEF_NO_LIST_ACCESS_MSG) + @denySidebar @allowDeveloper def checkDocumentPick(self, django_args): """Checks whether the user has access to the specified pick url.