web/views/actions.py
branch3.5
changeset 3271 6c8504b2ade0
parent 3228 7b05b2709439
child 3272 f46f2082468b
--- 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