web/views/actions.py
branchtls-sprint
changeset 660 5233a9457f6b
parent 631 99f5852f8604
child 690 ea613e8a5e4f
child 692 800592b8d39b
--- a/web/views/actions.py	Tue Feb 17 14:00:17 2009 +0100
+++ b/web/views/actions.py	Tue Feb 17 14:28:14 2009 +0100
@@ -143,7 +143,7 @@
     
 class DeleteAction(Action):
     id = 'delete'
-    __selectors__ = (has_permission('delete'),)
+    __selectors__ = (one_line_rset, has_permission('delete'))
     
     title = _('delete')
     category = 'moreactions' 
@@ -158,7 +158,7 @@
         
 class CopyAction(Action):
     id = 'copy'
-    __selectors__ = (has_permission('add'),)
+    __selectors__ = (one_line_rset, has_permission('add'))
     
     title = _('copy')
     category = 'moreactions'