--- api.py_old	2008-03-13 20:06:17.000000000 +0100
+++ api.py	2008-03-13 20:05:20.000000000 +0100
@@ -182,9 +182,9 @@
     # IPermissionRequestor methods
 
     def get_permission_actions(self):
-        return ['TICKET_APPEND', 'TICKET_CREATE', 'TICKET_CHGPROP',
+        return ['TICKET_REOPEN', 'TICKET_APPEND', 'TICKET_CREATE', 'TICKET_CHGPROP',
                 'TICKET_VIEW',
-                ('TICKET_MODIFY', ['TICKET_APPEND', 'TICKET_CHGPROP']),  
+                ('TICKET_MODIFY', ['TICKET_REOPEN', 'TICKET_APPEND', 'TICKET_CHGPROP']),  
                 ('TICKET_ADMIN', ['TICKET_CREATE', 'TICKET_MODIFY',  
                                   'TICKET_VIEW'])]
 
--- web_ui.py_old	2008-03-13 18:34:28.000000000 +0100
+++ web_ui.py	2008-03-13 20:01:59.000000000 +0100
@@ -657,6 +657,8 @@
         # Add the possible actions to hdf
         actions = TicketSystem(self.env).get_available_actions(ticket, req.perm)
         for action in actions:
+            if action == 'reopen' and not req.perm.has_permission('TICKET_REOPEN'):
+                continue
             req.hdf['ticket.actions.' + action] = '1'
 
     def grouped_changelog_entries(self, ticket, db, when=0):

