Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
  • Loading branch information...
commit ea2a514f5cdbc15f8c26e91f827339d3eb36d12a 1 parent 325762a
Christopher Long authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/contrib/auth/models.py
View
5 django/contrib/auth/models.py
@@ -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 []
Please sign in to comment.
Something went wrong with that request. Please try again.