Opened 9 years ago

Closed 9 years ago

#2418 closed defect (fixed)

PermLookupDict using old method to get full permissions list, failing

Reported by: DarkElf109@… Owned by: adrian
Component: Core (Other) Version: master
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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.

54:    def __repr__(self):
55:        return str(self.user.get_permission_list())

54:    def __repr__(self):
55:        return str(self.user.get_all_permissions())

Change History (1)

comment:1 Changed 9 years ago by mtredinnick

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

(In [3798]) Fixed #2418 -- Fixed obsolete method call in PermLookupDict.repr. Thanks,

Note: See TracTickets for help on using tickets.
Back to Top