mirror of https://github.com/MISP/MISP
chg: remove redundant call to beforeFilter, just calling its parent
parent
4aaa266254
commit
11537b8a73
|
@ -4,10 +4,6 @@ App::uses('AppController', 'Controller');
|
|||
class EventDelegationsController extends AppController {
|
||||
public $components = array('Session', 'RequestHandler');
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public $paginate = array(
|
||||
'limit' => 60,
|
||||
'maxLimit' => 9999, // LATER we will bump here on a problem once we have more than 9999 events <- no we won't, this is the max a user van view/page.
|
||||
|
|
|
@ -4,10 +4,6 @@ App::uses('AppController', 'Controller');
|
|||
class FavouriteTagsController extends AppController {
|
||||
public $components = array('Session', 'RequestHandler');
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public $paginate = array(
|
||||
'limit' => 60,
|
||||
'maxLimit' => 9999, // LATER we will bump here on a problem once we have more than 9999 events <- no we won't, this is the max a user van view/page.
|
||||
|
|
|
@ -12,10 +12,6 @@ class JobsController extends AppController {
|
|||
),
|
||||
);
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function index($queue = false) {
|
||||
if (!$this->_isSiteAdmin()) throw new MethodNotAllowedException();
|
||||
if (!Configure::read('MISP.background_jobs')) throw new NotFoundException('Background jobs are not enabled on this instance.');
|
||||
|
|
|
@ -4,10 +4,6 @@ App::uses('AppController', 'Controller');
|
|||
class NewsController extends AppController {
|
||||
public $components = array('Session', 'RequestHandler');
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public $paginate = array(
|
||||
'limit' => 5,
|
||||
'maxLimit' => 9999, // LATER we will bump here on a problem once we have more than 9999 events <- no we won't, this is the max a user van view/page.
|
||||
|
|
|
@ -20,10 +20,6 @@ class PostsController extends AppController {
|
|||
'limit' => 60,
|
||||
);
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
// Find the thread_id and post_id in advance. If a user clicks post comment on the event view, send the event's related thread's ID
|
||||
// Usage:
|
||||
// /posts/add : Creates new thread with the added post as the first post. Title set by user
|
||||
|
|
|
@ -13,10 +13,6 @@ class RegexpController extends AppController {
|
|||
)
|
||||
);
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function admin_add() {
|
||||
$this->loadModel('Attribute');
|
||||
$types = array_keys($this->Attribute->typeDefinitions);
|
||||
|
|
|
@ -26,10 +26,6 @@ class RolesController extends AppController {
|
|||
)
|
||||
);
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function view($id = null) {
|
||||
$this->Role->id = $id;
|
||||
if (!$this->Role->exists()) {
|
||||
|
|
|
@ -23,10 +23,6 @@ class TagsController extends AppController {
|
|||
|
||||
public $helpers = array('TextColour');
|
||||
|
||||
public function beforeFilter() { // TODO REMOVE
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function index($favouritesOnly = false) {
|
||||
$this->loadModel('Event');
|
||||
$this->loadModel('Taxonomy');
|
||||
|
|
|
@ -12,10 +12,6 @@ class TasksController extends AppController {
|
|||
)
|
||||
);
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
if (!$this->_isSiteAdmin()) throw new MethodNotAllowedException();
|
||||
if (!Configure::read('MISP.background_jobs')) throw new NotFoundException('Background jobs are not enabled on this instance.');
|
||||
|
|
|
@ -4,10 +4,6 @@ App::uses('AppController', 'Controller');
|
|||
class TaxonomiesController extends AppController {
|
||||
public $components = array('Session', 'RequestHandler');
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public $paginate = array(
|
||||
'limit' => 60,
|
||||
'maxLimit' => 9999, // LATER we will bump here on a problem once we have more than 9999 events <- no we won't, this is the max a user van view/page.
|
||||
|
|
|
@ -16,10 +16,6 @@ class ThreadsController extends AppController {
|
|||
'limit' => 60,
|
||||
);
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function viewEvent($id) {
|
||||
$this->loadModel('Event');
|
||||
$result = $this->Event->fetchEvent($this->Auth->user(), array('eventid' => $id));
|
||||
|
|
|
@ -4,10 +4,6 @@ App::uses('AppController', 'Controller');
|
|||
class WarninglistsController extends AppController {
|
||||
public $components = array('Session', 'RequestHandler');
|
||||
|
||||
public function beforeFilter() {
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public $paginate = array(
|
||||
'limit' => 60,
|
||||
'maxLimit' => 9999, // LATER we will bump here on a problem once we have more than 9999 events <- no we won't, this is the max a user van view/page.
|
||||
|
|
|
@ -16,10 +16,6 @@ class WhitelistsController extends AppController {
|
|||
)
|
||||
);
|
||||
|
||||
public function beforeFilter() { // TODO REMOVE
|
||||
parent::beforeFilter();
|
||||
}
|
||||
|
||||
public function admin_add() {
|
||||
if (!$this->userRole['perm_regexp_access']) $this->redirect(array('controller' => 'regexp', 'action' => 'index', 'admin' => false));
|
||||
$this->AdminCrud->adminAdd();
|
||||
|
|
Loading…
Reference in New Issue