]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: Always return a list for audit log check (#4463)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 30 Oct 2023 22:47:59 +0000 (15:47 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 22:47:59 +0000 (22:47 +0000)
src/paperless/checks.py

index 6b0501821b6bafb98501bc8f24eebbe1986e1d08..a9ed6a6ca143281029873fcfa30ddc97a37a2e86 100644 (file)
@@ -203,13 +203,16 @@ def settings_values_check(app_configs, **kwargs):
 def audit_log_check(app_configs, **kwargs):
     db_conn = connections["default"]
     all_tables = db_conn.introspection.table_names()
+    result = []
 
     if ("auditlog_logentry" in all_tables) and not (settings.AUDIT_LOG_ENABLED):
-        return [
+        result.append(
             Critical(
                 (
                     "auditlog table was found but PAPERLESS_AUDIT_LOG_ENABLED"
                     " is not active.  This setting cannot be disabled after enabling"
                 ),
             ),
-        ]
+        )
+
+    return result