Opened 17 years ago
Last modified 12 years ago
#2032 closed defect
SimpleTicketPlugin not playing well with PrivateTicketPlugin — at Initial Version
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Component: | SimpleTicketPlugin |
Severity: | minor | Keywords: | |
Cc: | Ryan J Ollos, falkb | Trac Release: | 0.10 |
Description
Using PrivateTicketPlugin and giving users one of the added permissions instead of TICKET_VIEW causes a problem in redirect():
def redirect(self, dest): if dest.startswith(self.env.href.ticket()): if not (self.req.perm.has_permission('TICKET_VIEW'): self.req.redirect(self.env.href.simpleticket())
TICKET_VIEW_REPORTER and TICKET_VIEW_SELF are the only ones to be added because the other permissions do not concern the creation of ticket.
Patch attached.
Note: See
TracTickets for help on using
tickets.
Patch file