mirror of
https://github.com/django/django.git
synced 2024-12-24 18:16:19 +00:00
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
This commit is contained in:
parent
26698bc851
commit
51b8f0a240
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user