def has_module_perms(self, app_label):
        if self.is_active and self.is_superuser:
            return True

        for backend in auth.get_backends():
            if not hasattr(backend, 'has_module_perms'):
                continue
            try:
                if backend.has_module_perms(self, app_label):
                    return True
            except PermissionDenied:
                return False
        return False
Returns True if the user has any permissions in the given app label.
dataset/ETHPy150Open grey0ne/django-protector/protector/models.py/UserGenericPermsMixin.has_module_perms