Removed middle ware.

This commit is contained in:
James Cole
2016-01-09 07:48:45 +01:00
parent 9fcb00f10b
commit 4bc1c032bd
20 changed files with 9 additions and 22 deletions

View File

@@ -28,7 +28,6 @@ class AccountController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
// create chart generator: // create chart generator:
$this->generator = app('FireflyIII\Generator\Chart\Account\AccountChartGenerator'); $this->generator = app('FireflyIII\Generator\Chart\Account\AccountChartGenerator');

View File

@@ -27,7 +27,6 @@ class BillController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
// create chart generator: // create chart generator:
$this->generator = app('FireflyIII\Generator\Chart\Bill\BillChartGenerator'); $this->generator = app('FireflyIII\Generator\Chart\Bill\BillChartGenerator');

View File

@@ -31,7 +31,6 @@ class BudgetController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
// create chart generator: // create chart generator:
$this->generator = app('FireflyIII\Generator\Chart\Budget\BudgetChartGenerator'); $this->generator = app('FireflyIII\Generator\Chart\Budget\BudgetChartGenerator');

View File

@@ -31,7 +31,6 @@ class CategoryController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
// create chart generator: // create chart generator:
$this->generator = app('FireflyIII\Generator\Chart\Category\CategoryChartGenerator'); $this->generator = app('FireflyIII\Generator\Chart\Category\CategoryChartGenerator');

View File

@@ -26,7 +26,6 @@ class PiggyBankController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
// create chart generator: // create chart generator:
$this->generator = app('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator'); $this->generator = app('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator');

View File

@@ -26,7 +26,6 @@ class ReportController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
// create chart generator: // create chart generator:
$this->generator = app('FireflyIII\Generator\Chart\Report\ReportChartGenerator'); $this->generator = app('FireflyIII\Generator\Chart\Report\ReportChartGenerator');

View File

@@ -3,14 +3,14 @@
namespace FireflyIII\Http\Controllers; namespace FireflyIII\Http\Controllers;
use App; use App;
use Auth;
use Carbon\Carbon;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController; use Illuminate\Routing\Controller as BaseController;
use View;
use Auth;
use Preferences; use Preferences;
use Carbon\Carbon; use View;
/** /**
* Class Controller * Class Controller
@@ -21,6 +21,12 @@ class Controller extends BaseController
{ {
use AuthorizesRequests, DispatchesJobs, ValidatesRequests; use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
/** @var string|\Symfony\Component\Translation\TranslatorInterface */
protected $monthFormat;
/** @var string|\Symfony\Component\Translation\TranslatorInterface */
protected $monthAndDayFormat;
/** /**
* Controller constructor. * Controller constructor.
*/ */

View File

@@ -34,7 +34,6 @@ class CsvController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
View::share('title', trans('firefly.csv')); View::share('title', trans('firefly.csv'));
View::share('mainTitleIcon', 'fa-file-text-o'); View::share('mainTitleIcon', 'fa-file-text-o');

View File

@@ -25,7 +25,6 @@ class CurrencyController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
View::share('title', trans('firefly.currencies')); View::share('title', trans('firefly.currencies'));
View::share('mainTitleIcon', 'fa-usd'); View::share('mainTitleIcon', 'fa-usd');

View File

@@ -13,7 +13,6 @@ class HelpController extends Controller
{ {
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
} }

View File

@@ -20,7 +20,6 @@ class HomeController extends Controller
{ {
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
} }

View File

@@ -22,7 +22,6 @@ class JsonController extends Controller
{ {
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
} }

View File

@@ -19,7 +19,6 @@ class NewUserController extends Controller
{ {
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
} }

View File

@@ -31,7 +31,6 @@ class PiggyBankController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
View::share('title', trans('firefly.piggyBanks')); View::share('title', trans('firefly.piggyBanks'));
View::share('mainTitleIcon', 'fa-sort-amount-asc'); View::share('mainTitleIcon', 'fa-sort-amount-asc');

View File

@@ -20,7 +20,6 @@ class PreferencesController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
View::share('title', trans('firefly.preferences')); View::share('title', trans('firefly.preferences'));
View::share('mainTitleIcon', 'fa-gear'); View::share('mainTitleIcon', 'fa-gear');

View File

@@ -17,7 +17,6 @@ class ProfileController extends Controller
{ {
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
} }

View File

@@ -27,7 +27,6 @@ class ReportController extends Controller
*/ */
public function __construct(ReportHelperInterface $helper) public function __construct(ReportHelperInterface $helper)
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
$this->helper = $helper; $this->helper = $helper;

View File

@@ -12,7 +12,6 @@ class SearchController extends Controller
{ {
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
} }

View File

@@ -39,7 +39,6 @@ class TagController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
View::share('title', 'Tags'); View::share('title', 'Tags');
View::share('mainTitleIcon', 'fa-tags'); View::share('mainTitleIcon', 'fa-tags');

View File

@@ -37,7 +37,6 @@ class TransactionController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('auth');
parent::__construct(); parent::__construct();
View::share('title', trans('firefly.transactions')); View::share('title', trans('firefly.transactions'));
View::share('mainTitleIcon', 'fa-repeat'); View::share('mainTitleIcon', 'fa-repeat');