Opened 16 years ago

Last modified 14 years ago

#13127 new New feature

Template tag "perms" doesn't support object level permission checking

Reported by: Dana Spiegel Owned by: nobody
Component: contrib.auth Version: 1.2-beta
Severity: Normal Keywords:
Cc: tarkatronic@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This should be a quick fix, but the perms template tag doesn't allow the specification of an object in order to test for object level permissions.

Attachments (1)

permissions.py (2.1 KB ) - added by Joey Wilhelm 14 years ago.
Missed a debug statement in the previous attachment

Download all attachments as: .zip

Change History (9)

comment:1 by Russell Keith-Magee, 16 years ago

Triage Stage: UnreviewedAccepted

{{ perms }} isn't a template tag -- it's an object put into the context by the PermWrapper context processor. However, the use case is valid.

comment:2 by aidan,