Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#310 closed defect (fixed)

Auth bug in generic views

Reported by: mordaha@… Owned by: adrian
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 10 years ago by jacob

Fixed in [492]

comment:2 Changed 10 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top