fix used selectors tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 15:01:50 +0100
branchtls-sprint
changeset 786 a261fee1bbde
parent 785 e4f9fa3c891a
child 787 b9eb2475b446
fix used selectors
web/views/actions.py
--- a/web/views/actions.py	Wed Feb 18 15:01:29 2009 +0100
+++ b/web/views/actions.py	Wed Feb 18 15:01:50 2009 +0100
@@ -130,7 +130,7 @@
 
 class ManagePermissionsAction(Action):
     id = 'managepermission'
-    __select__ = match_user_groups('managers') 
+    __select__ = one_line_rset() & match_user_groups('managers')
 
     title = _('manage permissions')
     category = 'moreactions'
@@ -150,7 +150,7 @@
     
 class DeleteAction(Action):
     id = 'delete'
-    __select__ = one_line_rset() & has_permission('delete')
+    __select__ = has_permission('delete')
     
     title = _('delete')
     category = 'moreactions'