mirror of https://github.com/MISP/MISP
Added logging to the blacklist models
parent
5a58fee7da
commit
eed7bb17b2
|
@ -4,6 +4,10 @@ class EventBlacklist extends AppModel{
|
|||
public $useTable = 'event_blacklists';
|
||||
public $recursive = -1;
|
||||
public $actsAs = array(
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Containable',
|
||||
);
|
||||
public $blacklistFields = array('event_uuid', 'comment', 'event_info', 'event_orgc');
|
||||
|
|
|
@ -3,7 +3,13 @@ App::uses('AppModel', 'Model');
|
|||
class OrgBlacklist extends AppModel{
|
||||
public $useTable = 'org_blacklists';
|
||||
public $recursive = -1;
|
||||
public $actsAs = array('Containable');
|
||||
public $actsAs = array(
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Containable',
|
||||
);
|
||||
public $blacklistFields = array('org_uuid', 'comment', 'org_name');
|
||||
|
||||
public $validate = array(
|
||||
|
|
Loading…
Reference in New Issue