chg: remove redundant call to beforeFilter, just calling its parent

pull/1511/head
Andreas Ziegler 2016-09-06 23:22:59 +02:00
parent 4aaa266254
commit 11537b8a73
13 changed files with 0 additions and 52 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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()) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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();