Opened 17 years ago

Last modified 16 years ago

#7304 closed

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

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 (last modified by Ramiro Morales)

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 (3)

comment:1 by Matthias Kestenholz, 16 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 by Ramiro Morales, 16 years ago

Description: modified (diff)

by Matthias Kestenholz, 16 years ago

Attachment: 7304.patch added
Note: See TracTickets for help on using tickets.
Back to Top