# HG changeset patch # User Sylvain Thénault # Date 1285755310 -7200 # Node ID 22c95c5ef12d5628dbcd5f5879fe5b661c578ae2 # Parent 2d277c67f103128b59395714a5c3de0e6abc6c58 [web action] has_permission_update checked implicitly by has_editable_relation, don't check it twice diff -r 2d277c67f103 -r 22c95c5ef12d 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'