From 51b8f0a2402d56ec84c2f12045291c0f7e6862e6 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Thu, 20 Oct 2011 04:23:34 +0000 Subject: [PATCH] Removed a small useless piece of code from `contrib.auth`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17016 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index 0aa1c188e6..9aeced2462 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -154,7 +154,6 @@ def _user_has_perm(user, perm, obj): def _user_has_module_perms(user, app_label): - active = user.is_active for backend in auth.get_backends(): if hasattr(backend, "has_module_perms"): if backend.has_module_perms(user, app_label):