AnonymousUser doesn't have has_perms()
|Reported by:||Owned by:||Matthias Kestenholz|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by )
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 (5)
comment:3 Changed 9 years ago by
|Owner:||changed from nobody to Matthias Kestenholz|
|Status:||new → assigned|
|Triage Stage:||Accepted → Ready for checkin|