mirror of
https://github.com/django/django.git
synced 2025-10-03 07:14:41 +00:00
Fixed #796 -- Gave AnonymousUser a has_module_perms method.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d6aa904487
commit
2c61aff523
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ class AnonymousUser:
|
|||
def has_perm(self, perm):
|
||||
return False
|
||||
|
||||
def has_module_perms(self, module):
|
||||
return False
|
||||
|
||||
def get_and_delete_messages(self):
|
||||
return []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue