1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

[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
This commit is contained in:
Christopher Long 2006-08-30 19:14:09 +00:00
parent 325762a1e9
commit ea2a514f5c

View File

@ -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 []