mirror of https://github.com/MISP/MISP
chg: [galaxy] Added logging behavior for galaxies, clusters and relations
parent
410e3fbeee
commit
7d07a631f2
|
@ -404,7 +404,7 @@ class LogsController extends AppController
|
|||
$this->set('actions', $actions);
|
||||
|
||||
// combobox for models
|
||||
$models = array('Attribute', 'Event', 'EventBlocklist', 'EventTag', 'Feed', 'DecayingModel', 'MispObject', 'Organisation', 'Post', 'Regexp', 'Role', 'Server', 'ShadowAttribute', 'SharingGroup', 'Tag', 'Task', 'Taxonomy', 'Template', 'Thread', 'User', 'Allowedlist');
|
||||
$models = array('Attribute', 'Event', 'EventBlocklist', 'EventTag', 'Feed', 'DecayingModel', 'MispObject', 'Organisation', 'Post', 'Regexp', 'Role', 'Server', 'ShadowAttribute', 'SharingGroup', 'Tag', 'Task', 'Taxonomy', 'Template', 'Thread', 'User', 'Allowedlist', 'Galaxy', 'GalaxyCluster', 'GalaxyClusterRelation');
|
||||
$models = array('' => 'ALL') + $this->_arrayToValuesIndexArray($models);
|
||||
$this->set('models', $models);
|
||||
$this->set('actionDefinitions', $this->{$this->defaultModel}->actionDefinitions);
|
||||
|
|
|
@ -7,7 +7,11 @@ class Galaxy extends AppModel
|
|||
public $recursive = -1;
|
||||
|
||||
public $actsAs = array(
|
||||
'Containable',
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Containable',
|
||||
);
|
||||
|
||||
public $validate = array(
|
||||
|
|
|
@ -7,7 +7,11 @@ class GalaxyCluster extends AppModel
|
|||
public $recursive = -1;
|
||||
|
||||
public $actsAs = array(
|
||||
'Containable',
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Containable',
|
||||
);
|
||||
|
||||
private $__assetCache = array();
|
||||
|
|
|
@ -8,7 +8,11 @@ class GalaxyClusterRelation extends AppModel
|
|||
public $recursive = -1;
|
||||
|
||||
public $actsAs = array(
|
||||
'Containable',
|
||||
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
|
||||
'userModel' => 'User',
|
||||
'userKey' => 'user_id',
|
||||
'change' => 'full'),
|
||||
'Containable',
|
||||
);
|
||||
|
||||
public $validate = array(
|
||||
|
|
|
@ -37,7 +37,7 @@ class Log extends AppModel
|
|||
'edit',
|
||||
'email',
|
||||
'enable',
|
||||
'enrichment',
|
||||
'enrichment',
|
||||
'error',
|
||||
'export',
|
||||
'fetchEvent',
|
||||
|
|
Loading…
Reference in New Issue