def has_perm(self, user_obj, perm, obj=None):
        if not user_obj.is_active:
            return False
        return perm in self.get_all_permissions(user_obj, obj)
dataset/ETHPy150Open splunk/splunk-webframework/contrib/django/django/contrib/auth/backends.py/ModelBackend.has_perm/original