mirror of https://github.com/MISP/MISP
parent
3dec0d997b
commit
6e06f665a8
|
@ -15,12 +15,14 @@ class Attribute extends AppModel {
|
|||
|
||||
public $name = 'Attribute'; // TODO general
|
||||
|
||||
public $actsAs = array('SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'
|
||||
), 'Trim'
|
||||
, 'Regexp' => array('fields' => array('value', 'value2'))
|
||||
public $actsAs = array(
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Trim',
|
||||
'Regexp' => array('fields' => array('value', 'value2')),
|
||||
'Blacklist' => array('fields' => array('value'))
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,11 +10,15 @@ App::import('Controller', 'Attributes');
|
|||
*/
|
||||
class Event extends AppModel {
|
||||
|
||||
public $actsAs = array('SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'
|
||||
), 'Trim', 'Regexp' => array('fields' => array('info')));
|
||||
public $actsAs = array(
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Trim',
|
||||
'Regexp' => array('fields' => array('info')),
|
||||
'Blacklist' => array('fields' => array('info')),
|
||||
);
|
||||
|
||||
/**
|
||||
* Display field
|
||||
|
|
Loading…
Reference in New Issue