Opened 19 years ago

Closed 19 years ago

Last modified 17 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: no UI/UX: no

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 by Jacob, 19 years ago

Fixed in [492]

comment:2 by Jacob, 19 years ago

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