Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: Always return a list for audit log check (#4463)

shamoon89757609c26e
diff --git a/src/paperless/checks.py b/src/paperless/checks.py
index 6b0501821..a9ed6a6ca 100644
--- a/src/paperless/checks.py
+++ b/src/paperless/checks.py
@@ -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