summaryrefslogtreecommitdiff
path: root/django/contrib/auth/tests
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2011-11-12 17:23:07 +0000
committerKaren Tracey <kmtracey@gmail.com>2011-11-12 17:23:07 +0000
commitf4f61baa8c4e5213d17d99ed562186895b389952 (patch)
tree0f30888bc98b9d8c8c14b14a1e852c9a80987102 /django/contrib/auth/tests
parent1aef1b20aaf73f19d0f4872a9702f41393014ec6 (diff)
Fix #16813: Restore checking whether a backend supports inctive users before sending inactive users in for permission checking. Thanks apollo13 for the report and poirier for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/auth/tests')
-rw-r--r--django/contrib/auth/tests/auth_backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/tests/auth_backends.py b/django/contrib/auth/tests/auth_backends.py
index afef0e7286..0337ef14f3 100644
--- a/django/contrib/auth/tests/auth_backends.py
+++ b/django/contrib/auth/tests/auth_backends.py
@@ -300,7 +300,7 @@ class NoInActiveUserBackendTest(TestCase):
def test_has_perm(self):
self.assertEqual(self.user1.has_perm('perm', TestObj()), False)
- self.assertEqual(self.user1.has_perm('inactive', TestObj()), True)
+ self.assertEqual(self.user1.has_perm('inactive', TestObj()), False)
def test_has_module_perms(self):
self.assertEqual(self.user1.has_module_perms("app1"), False)