equal
deleted
inserted
replaced
40 editedattrs = entity.cw_edited |
40 editedattrs = entity.cw_edited |
41 dontcheck = editedattrs.skip_security |
41 dontcheck = editedattrs.skip_security |
42 for attr in editedattrs: |
42 for attr in editedattrs: |
43 if attr in dontcheck: |
43 if attr in dontcheck: |
44 continue |
44 continue |
45 rdef = eschema.rdef(attr) |
45 rdef = eschema.rdef(attr, takefirst=True) |
46 if rdef.final: # non final relation are checked by standard hooks |
46 if rdef.final: # non final relation are checked by standard hooks |
47 perms = rdef.permissions.get(action) |
47 perms = rdef.permissions.get(action) |
48 # comparison below works because the default update perm is: |
48 # comparison below works because the default update perm is: |
49 # |
49 # |
50 # ('managers', ERQLExpression(Any X WHERE U has_update_permission X, |
50 # ('managers', ERQLExpression(Any X WHERE U has_update_permission X, |