mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fix: Always return a list for audit log check (#4463)
This commit is contained in:
parent
0f1dea67b7
commit
89757609c2
@ -203,13 +203,16 @@ def settings_values_check(app_configs, **kwargs):
|
|||||||
def audit_log_check(app_configs, **kwargs):
|
def audit_log_check(app_configs, **kwargs):
|
||||||
db_conn = connections["default"]
|
db_conn = connections["default"]
|
||||||
all_tables = db_conn.introspection.table_names()
|
all_tables = db_conn.introspection.table_names()
|
||||||
|
result = []
|
||||||
|
|
||||||
if ("auditlog_logentry" in all_tables) and not (settings.AUDIT_LOG_ENABLED):
|
if ("auditlog_logentry" in all_tables) and not (settings.AUDIT_LOG_ENABLED):
|
||||||
return [
|
result.append(
|
||||||
Critical(
|
Critical(
|
||||||
(
|
(
|
||||||
"auditlog table was found but PAPERLESS_AUDIT_LOG_ENABLED"
|
"auditlog table was found but PAPERLESS_AUDIT_LOG_ENABLED"
|
||||||
" is not active. This setting cannot be disabled after enabling"
|
" is not active. This setting cannot be disabled after enabling"
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
)
|
||||||
|
|
||||||
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user