Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#310 closed defect (fixed)

Auth bug in generic views

Reported by: mordaha@… Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: major Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In jango.generic.create_update

    if login_required and request.user.is_anonymous():
        return redirect_to_login(request)

Must be:

    if login_required and request.user.is_anonymous():
        return redirect_to_login(request.path)

Coz redirect_to_login() requires a path like argument, not request

Change History (2)

comment:1 Changed 11 years ago by Jacob

Fixed in [492]

comment:2 Changed 11 years ago by Jacob

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top