hooks/security.py
changeset 9415 0ff1de2aa55d
parent 9412 8aa6c923d6c0
child 9478 2d7521881d3d
child 9536 1e39c5e91b68
--- a/hooks/security.py	Thu Jan 16 14:19:04 2014 +0100
+++ b/hooks/security.py	Tue Jan 14 11:14:41 2014 +0100
@@ -42,7 +42,7 @@
     for attr in editedattrs:
         if attr in dontcheck:
             continue
-        rdef = eschema.rdef(attr)
+        rdef = eschema.rdef(attr, takefirst=True)
         if rdef.final: # non final relation are checked by standard hooks
             perms = rdef.permissions.get(action)
             # comparison below works because the default update perm is: