Commit 51b8f0a2 authored by Julien Phalip's avatar Julien Phalip
Browse files

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
parent 26698bc8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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):