Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[per-object-permissions] Fixed #2622 and added in contains_permission…

… method to the anonymous user model

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 325762a commit ea2a514f5cdbc15f8c26e91f827339d3eb36d12a Christopher Long committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/contrib/auth/
5 django/contrib/auth/
@@ -542,12 +542,15 @@ def _get_user_permissions(self):
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 []

0 comments on commit ea2a514

Please sign in to comment.
Something went wrong with that request. Please try again.