Opened 19 years ago
Closed 19 years ago
#2418 closed defect (fixed)
PermLookupDict using old method to get full permissions list, failing
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Other) | Version: | dev |
| Severity: | major | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In django.core.contextProcessors, on line 55, PermLookupDict's __repr__ function attempts to return the given User object's permission list through the use of get_permission_list(). Since this is no longer implemented in User, it fails consistently. Instead, get_all_permissions() should be used.
Excerpt: 54: def __repr__(self): 55: return str(self.user.get_permission_list()) Proposed: 54: def __repr__(self): 55: return str(self.user.get_all_permissions())
Note:
See TracTickets
for help on using tickets.
(In [3798]) Fixed #2418 -- Fixed obsolete method call in PermLookupDict.repr. Thanks,
DarkElf109@….