[web action] has_permission_update checked implicitly by has_editable_relation, don't check it twice stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Sep 2010 12:15:10 +0200
branchstable
changeset 6358 22c95c5ef12d
parent 6357 2d277c67f103
child 6359 0bff5a05385c
[web action] has_permission_update checked implicitly by has_editable_relation, don't check it twice
web/views/actions.py
--- a/web/views/actions.py	Wed Sep 29 12:13:44 2010 +0200
+++ b/web/views/actions.py	Wed Sep 29 12:15:10 2010 +0200
@@ -142,8 +142,8 @@
 
 class ModifyAction(action.Action):
     __regid__ = 'edit'
-    __select__ = (action.Action.__select__ & one_line_rset() &
-                  (has_permission('update') | has_editable_relation('add')))
+    __select__ = (action.Action.__select__
+                  & one_line_rset() & has_editable_relation('add'))
 
     title = _('modify')
     category = 'mainactions'