Blacklist

Blacklist gets activated on Event.info and Attribute.value.
pull/63/head
Noud de Brouwer 2013-01-10 14:43:37 +00:00
parent 3dec0d997b
commit 6e06f665a8
2 changed files with 17 additions and 11 deletions

View File

@ -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'))
);
/**

View File

@ -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