Modify ↓
Opened 8 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
24 24 return template, data, content_type 25 25 26 26 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(): 28 29 req.redirect(req.href.login()) 29 30 30 31 try:
Attachments (0)
Note: See
TracTickets for help on using
tickets.