mirror of https://github.com/MISP/MISP
parent
504599fbcc
commit
9d9dd7b4af
|
@ -10,6 +10,7 @@ App::uses('AppController', 'Controller');
|
|||
class BlacklistsController extends AppController {
|
||||
|
||||
public $XXXcomponents = array('Security', 'RequestHandler');
|
||||
|
||||
public $components = array(
|
||||
'Auth' => array(
|
||||
'authorize' => array(
|
||||
|
|
|
@ -86,7 +86,6 @@ class RegexpController extends AppController {
|
|||
$this->set('list', Sanitize::clean($this->paginate()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -40,6 +40,8 @@ class RolesController extends AppController {
|
|||
*
|
||||
* @param string $id
|
||||
* @return void
|
||||
*
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function view($id = null) {
|
||||
$this->Role->id = $id;
|
||||
|
|
|
@ -84,13 +84,14 @@ class WhitelistsController extends AppController {
|
|||
if($this->Auth->User['User']['org'] != 'ADMIN') $this->redirect(array('controller' => 'blaclists', 'action' => 'index', 'admin' => false));
|
||||
$this->AdminCrud->adminDelete($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* index method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function index() {
|
||||
$this->recursive = 0;
|
||||
$this->set('list', Sanitize::clean($this->paginate()));
|
||||
public function index() {
|
||||
$this->recursive = 0;
|
||||
$this->set('list', Sanitize::clean($this->paginate()));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue