mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Fix: Always return a list for audit log check (#4463)
This commit is contained in:
parent
d9b79f5eb4
commit
e033d5f5a3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user