Code

Opened 9 years ago

Closed 9 years ago

Last modified 7 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

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by jacob

Fixed in [492]

comment:2 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


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

 
Note: See TracTickets for help on using tickets.