1. Thomas Waldmann
  2. storage-ng

Commits

Thomas Waldmann  committed e4c2e4d

require read access for iter_revs

  • Participants
  • Parent commits f2b0ea1
  • Branches default

Comments (0)

Files changed (1)

File storage/middleware/protecting.py

View file
             raise AccessDenied("item does not allow user '%r' to '%r'" % (self.protector.user_name, capability))
 
     def iter_revs(self):
+        self.require('read')
         if self:
             for rev in self.item.iter_revs():
                 yield ProtectedRevision(self.protector, rev, p_item=self)