From 3fd68b5cc67a2910bb011c692f877d21656833fa Mon Sep 17 00:00:00 2001 From: HDVinnie Date: Tue, 20 Feb 2018 12:28:28 -0500 Subject: [PATCH] (Fix) Issue #198 - Closes #198 --- app/Http/Controllers/HomeController.php | 7 ------- routes/web.php | 8 ++++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index d6068e0a6f..46957b56ee 100755 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -38,13 +38,6 @@ class HomeController extends Controller { - public function __construct() - { - parent::__construct(); - - $this->middleware('private'); - } - /** * Home page * diff --git a/routes/web.php b/routes/web.php index 1d2621a21f..c0fb059de5 100755 --- a/routes/web.php +++ b/routes/web.php @@ -64,7 +64,7 @@ | Website (When Authorized) |------------------------------------------ */ - Route::group(['middleware' => ['auth', 'twostep', 'online', 'banned', 'active']], function () { + Route::group(['middleware' => ['auth', 'twostep', 'online', 'banned', 'active', 'private']], function () { // Two Step Auth Route::get('/twostep/needed', 'Auth\TwoStepController@showVerification')->name('verificationNeeded'); @@ -268,7 +268,7 @@ | ShoutBox Routes Group (when authorized) |------------------------------------------ */ - Route::group(['prefix' => 'shoutbox', 'middleware' => ['auth', 'twostep', 'online', 'banned', 'active']], function () { + Route::group(['prefix' => 'shoutbox', 'middleware' => ['auth', 'twostep', 'online', 'banned', 'active', 'private']], function () { Route::get('/', 'HomeController@home')->name('shoutbox-home'); Route::get('/messages/{after?}', 'ShoutboxController@pluck')->name('shoutbox-fetch'); Route::post('/send', 'ShoutboxController@send')->name('shoutbox-send'); @@ -280,7 +280,7 @@ | Community Routes Group (when authorized) |------------------------------------------ */ - Route::group(['prefix' => 'forums', 'middleware' => ['auth', 'twostep', 'online', 'banned', 'active']], function () { + Route::group(['prefix' => 'forums', 'middleware' => ['auth', 'twostep', 'online', 'banned', 'active', 'private']], function () { // Display Forum Index Route::get('/', 'ForumController@index')->name('forum_index'); // Search Forums @@ -332,7 +332,7 @@ | Staff Dashboard Routes Group (when authorized and a staff group) |----------------------------------------------------------------- */ - Route::group(['prefix' => 'staff_dashboard', 'middleware' => ['auth', 'twostep', 'modo', 'online', 'banned', 'active'], 'namespace' => 'Staff'], function () { + Route::group(['prefix' => 'staff_dashboard', 'middleware' => ['auth', 'twostep', 'modo', 'online', 'banned', 'active', 'private'], 'namespace' => 'Staff'], function () { // Staff Dashboard Route::any('/', 'HomeController@home')->name('staff_dashboard');