server/securityhooks.py
branchstable
changeset 3689 deb13e88e037
parent 2920 64322aa83a1d
child 3877 7ca53fc72a0a
child 4212 ab6573088b4a
--- a/server/securityhooks.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/server/securityhooks.py	Thu Oct 15 20:29:21 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)