Modify

Opened 7 years ago

#12988 new defect

Only redirect if correct action property of PermissionError exception

Reported by: Ryan J Ollos Owned by: ejucovy
Priority: normal Component: PermRedirectPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

Suggested in trac:comment:13:ticket:11513:

  • permredirect/filter.py

     
    2424                return template, data, content_type
    2525
    2626            exctype, exc = sys.exc_info()[0:2]
    27             if issubclass(exctype, PermissionError):
     27            if issubclass(exctype, PermissionError) and \
     28                    exc.action and exc.action.isupper():
    2829                req.redirect(req.href.login())
    2930
    3031            try:

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain ejucovy.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.