[web action] has_editable_relations should not filter out final relations, fix regression introduced in 6358:22c95c5ef12d stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Sep 2010 12:53:30 +0200
branchstable
changeset 6363 b9ec8ebc187a
parent 6362 1b5fc8581437
child 6364 ad9ed9803eb6
[web action] has_editable_relations should not filter out final relations, fix regression introduced in 6358:22c95c5ef12d
web/views/actions.py
--- a/web/views/actions.py	Wed Sep 29 12:44:11 2010 +0200
+++ b/web/views/actions.py	Wed Sep 29 12:53:30 2010 +0200
@@ -57,8 +57,7 @@
                  'optional argument', DeprecationWarning)
             editableattrs = form.editable_attributes()
         for rschema, role in editableattrs:
-            if not rschema.final:
-                return 1
+            return 1
         return 0
 
 @objectify_selector