# HG changeset patch # User Sylvain Thénault # Date 1253121901 -7200 # Node ID 6c8504b2ade08160de5947377e7774d5ef256dc2 # Parent ae43a0ddc1d9a24a74655241189a6fbc2c208017 set strict when checking if edit action should be shown diff -r ae43a0ddc1d9 -r 6c8504b2ade0 web/views/actions.py --- a/web/views/actions.py Wed Sep 16 18:25:13 2009 +0200 +++ b/web/views/actions.py Wed Sep 16 19:25:01 2009 +0200 @@ -32,10 +32,10 @@ # if user has no update right but it can modify some relation, # display action anyway for dummy in AutomaticEntityForm.esrelations_by_category( - entity, 'generic', 'add'): + entity, 'generic', 'add', strict=True): return 1 for rschema, targetschemas, role in AutomaticEntityForm.erelations_by_category( - entity, ('primary', 'secondary'), 'add'): + entity, ('primary', 'secondary'), 'add', strict=True): if not rschema.is_final(): return 1 return 0