Opened 18 years ago
Closed 17 years ago
#7304 closed (fixed)
AnonymousUser doesn't have has_perms()
| Reported by: | Owned by: | Matthias Kestenholz | |
|---|---|---|---|
| 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 )
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.
Attachments (1)
Change History (5)
comment:1 by , 17 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
| Description: | modified (diff) |
|---|
by , 17 years ago
| Attachment: | 7304.patch added |
|---|
comment:3 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Triage Stage: | Accepted → Ready for checkin |
comment:4 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Includes tests now.