summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Long <indirecthit@gmail.com>2006-08-30 19:14:09 +0000
committerChristopher Long <indirecthit@gmail.com>2006-08-30 19:14:09 +0000
commitea2a514f5cdbc15f8c26e91f827339d3eb36d12a (patch)
treee3bfd4a0b209a7906c81d275730d80ca314aa856
parent325762a1e925e642a8c5ecca0b19216668bfebf9 (diff)
downloaddjango-ea2a514f5cdbc15f8c26e91f827339d3eb36d12a.tar.gz
[per-object-permissions] Fixed #2622 and added in contains_permission method to the anonymous user model
git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 5f04239a2b..96e3a11126 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -542,12 +542,15 @@ class AnonymousUser(object):
raise NotImplementedError
user_permissions = property(_get_user_permissions)
- def has_perm(self, perm):
+ def has_perm(self, perm, object=None):
return False
def has_module_perms(self, module):
return False
+ def contains_permission(self, perm, model=None):
+ return False
+
def get_and_delete_messages(self):
return []