sobjects/notification.py
branchstable
changeset 3689 deb13e88e037
parent 3580 e270358f68cc
child 3720 5376aaadd16b
child 3877 7ca53fc72a0a
child 4212 ab6573088b4a
equal deleted inserted replaced
3688:421fb447ecb2 3689:deb13e88e037
   270         _ = self.req._
   270         _ = self.req._
   271         formatted_changes = []
   271         formatted_changes = []
   272         for attr, oldvalue, newvalue in sorted(changes):
   272         for attr, oldvalue, newvalue in sorted(changes):
   273             # check current user has permission to see the attribute
   273             # check current user has permission to see the attribute
   274             rschema = self.vreg.schema[attr]
   274             rschema = self.vreg.schema[attr]
   275             if rschema.is_final():
   275             if rschema.final:
   276                 if not rschema.has_perm(self.req, 'read', eid=self.rset[0][0]):
   276                 if not rschema.has_perm(self.req, 'read', eid=self.rset[0][0]):
   277                     continue
   277                     continue
   278             # XXX suppose it's a subject relation...
   278             # XXX suppose it's a subject relation...
   279             elif not rschema.has_perm(self.req, 'read', fromeid=self.rset[0][0]):
   279             elif not rschema.has_perm(self.req, 'read', fromeid=self.rset[0][0]):
   280                 continue
   280                 continue