Ticket #2032 (new defect)

Opened 1 year ago

Last modified 1 year ago

SimpleTicketPlugin not playing well with PrivateTicketPlugin

Reported by: spike@fatdrop.co.uk Assigned to: coderanger
Priority: normal Component: SimpleTicketPlugin
Severity: minor Keywords:
Cc: 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.

Attachments

simpleticket.patch (0.6 kB) - added by spike@fatdrop.co.uk on 09/10/07 20:09:53.
Patch file

Change History

09/10/07 20:09:53 changed by spike@fatdrop.co.uk

  • attachment simpleticket.patch added.

Patch file

09/10/07 20:59:07 changed by coderanger

Simply hard coding those in is not a terribly good solution to me. Using the new security stuff in 0.11 (once PrivateTickets is ported) this should be much cleaner.


Add/Change #2032 (SimpleTicketPlugin not playing well with PrivateTicketPlugin)




Change Properties
Action