Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
authored August 30, 2006

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/contrib/auth/models.py
5  django/contrib/auth/models.py
@@ -542,12 +542,15 @@ def _get_user_permissions(self):
542 542
         raise NotImplementedError
543 543
     user_permissions = property(_get_user_permissions)
544 544
 
545  
-    def has_perm(self, perm):
  545
+    def has_perm(self, perm, object=None):
546 546
         return False
547 547
 
548 548
     def has_module_perms(self, module):
549 549
         return False
550 550
 
  551
+    def contains_permission(self, perm, model=None):
  552
+        return False
  553
+
551 554
     def get_and_delete_messages(self):
552 555
         return []
553 556
 

0 notes on commit ea2a514

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