Opened 7 years ago

Closed 7 years ago

#29031 closed Bug (invalid)

@permission_required decorator not Working

Reported by: Louis Owned by: nobody
Component: contrib.auth Version: 2.0
Severity: Normal Keywords: permission_required decorator
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

User does not have the delete permission but can delete record by ajax delete request with method 'POST', and the requested function in view has @permission_required decorator required permission of deletion, however it seems does not work any more. The permission_required returns False by debugging the if user has delete permission but it is not working.

Change History (2)

comment:1 by Louis, 7 years ago

Type: UncategorizedBug

comment:2 by Louis, 7 years ago

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