diff -r 29f74716fd70 -r 5376aaadd16b hooks/security.py --- a/hooks/security.py Thu Oct 15 11:20:26 2009 +0200 +++ b/hooks/security.py Mon Oct 19 15:16:41 2009 +0200 @@ -25,8 +25,8 @@ for attr in editedattrs: if attr in defaults: continue - rschema = eschema.subject_relation(attr) - if rschema.is_final(): # non final relation are checked by other hooks + rschema = eschema.subjrels[attr] + if rschema.final: # non final relation are checked by other hooks # add/delete should be equivalent (XXX: unify them into 'update' ?) rschema.check_perm(session, 'add', eid)