equal
deleted
inserted
replaced
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 |