Opened 17 years ago

Last modified 16 years ago

#7304 closed

AnonymousUser doesn't have has_perms() — at Initial Version

Reported by: thierry@… Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Trying to call has_perms() on the AnonymousUser results in the following error:

'AnonymousUser' object has no attribute 'has_perms'

has_perm() works as expected

The problem with this is that one cannot use has_perms() without first checking for the AnonymousUser.

Change History (0)

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