﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
3835,Correct permission for ticket modify,okamototk,Alec Thomas,"Hi,

XmlRpcPlugin needs TRAC_ADMIN permission for update ticket. However I think it should be TRAC_MODIFY permission. I attached the pacth. Please improve it.


Index: tracrpc/ticket.py
===================================================================
--- tracrpc/ticket.py   (revision 4361)
+++ tracrpc/ticket.py   (working copy)
@@ -29,7 +29,7 @@
         yield ('TICKET_VIEW', ((list, int),), self.getAvailableActions)
         yield ('TICKET_VIEW', ((list, int),), self.get)
         yield ('TICKET_CREATE', ((int, str, str), (int, str, str, dict), (int, str, str, dict, bool)), self.create)
-        yield ('TICKET_ADMIN', ((list, int, str), (list, int, str, dict), (list, int, str, dict, bool)), self.update)
+        yield ('TICKET_MODIFY', ((list, int, str), (list, int,str, dict), (list, int, str, dict, bool)), self.update)
         yield ('TICKET_ADMIN', ((None, int),), self.delete)
         yield ('TICKET_VIEW', ((dict, int), (dict, int, int)), self.changeLog)
         yield ('TICKET_VIEW', ((list, int),), self.listAttachments)

",defect,new,normal,XmlRpcPlugin,major,,,,0.11
