Added denySidebar to several access checks.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 10 Jul 2009 11:39:41 +0200
changeset 2583 3a8275049403
parent 2582 df5939fecaff
child 2584 10858e5d5712
Added denySidebar to several access checks.
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.