# HG changeset patch # User Aurelien Campeas # Date 1389694481 -3600 # Node ID 0ff1de2aa55de368b9e95ccfdfc11c95e60aa652 # Parent d8c0784038f41bf0ddc27afc99626a4ba06644fb [hooks/security] silence yams warning (closes #3440707) If the rdef is not final, yams will complain. diff -r d8c0784038f4 -r 0ff1de2aa55d hooks/security.py --- 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: