hooks/security.py
changeset 3720 5376aaadd16b
parent 3689 deb13e88e037
parent 3376 f5c69485381f
child 3890 d7a270f50f54
--- 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)