From 2c61aff52339ad1dc65f70a8c79b5f0b48266c21 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 15 Nov 2005 14:43:56 +0000 Subject: [PATCH] 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 --- django/parts/auth/anonymoususers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/parts/auth/anonymoususers.py b/django/parts/auth/anonymoususers.py index b279d99d06..fea93e2f5a 100644 --- a/django/parts/auth/anonymoususers.py +++ b/django/parts/auth/anonymoususers.py @@ -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 []