fix: [AuditLog] warn admin when audit log is not enabled

pull/8796/head
Christophe Vandeplas 2022-11-28 09:58:01 +01:00
parent 9137778ff1
commit a5bcbdd295
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ class AuditLogsController extends AppController
if ($this->_isRest()) {
$this->paginate['fields'][] = 'request_id';
}
if (!Configure::read('MISP.log_new_audit')) {
$this->Flash->warning(__("Audit log is not enabled. See 'MISP.log_new_audit' in the Server Settings. (Administration -> Server Settings -> MISP tab)"));
}
$params = $this->IndexFilter->harvestParameters([
'ip',
'user',