Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#684 closed defect (fixed)

[patch] Give views/decorators/auth.py a fighting chance of accomplishing something

Reported by: rjwittams Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by rjwittams)

auth.py is broken. user_passes_test is not a decorator, login_required throws away its view function and calls user_passes_test with only one argument.

This patch restores a vague semblance of correctness to the code..

Attachments (1)

django-auth-decorators.patch (1.5 KB) - added by rjwittams 8 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 8 years ago by rjwittams

  • Summary changed from [patch] Give auth-decorators.py a fighting chance of accomplishing something to [patch] Give views/decorators/auth.py a fighting chance of accomplishing something

comment:2 Changed 8 years ago by rjwittams

  • Description modified (diff)

Changed 8 years ago by rjwittams

comment:3 Changed 8 years ago by adrian

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

(In [1004]) Fixed #684 -- Fixed login_required and user_passes_test decorators. Thanks, rjwittams

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.