[hooks/security] silence yams warning (closes #3440707)
If the rdef is not final, yams will complain.
--- 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: