From 0a9c6ed07fed2054126ce4d2f162cbb156c867b4 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 3 Apr 2024 08:05:54 -0700 Subject: [PATCH] Fix warning condition --- src/paperless/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/checks.py b/src/paperless/checks.py index baf537138..2909eae86 100644 --- a/src/paperless/checks.py +++ b/src/paperless/checks.py @@ -204,7 +204,7 @@ def audit_log_check(app_configs, **kwargs): all_tables = db_conn.introspection.table_names() result = [] - if ("auditlog_logentry" in all_tables) or (settings.AUDIT_LOG_DISABLED): + if ("auditlog_logentry" in all_tables) and (settings.AUDIT_LOG_DISABLED): result.append( Warning( ("auditlog table was found but AUDIT_LOG_DISABLED is active."),