Skip to content

Commit

Permalink
(Fix) Issue #198
Browse files Browse the repository at this point in the history
- Closes #198
  • Loading branch information
HDVinnie committed Feb 20, 2018
1 parent 6f99556 commit 3fd68b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@

class HomeController extends Controller
{
public function __construct()
{
parent::__construct();

$this->middleware('private');
}

/**
* Home page
*
Expand Down
8 changes: 4 additions & 4 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand All @@ -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
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3fd68b5

Please sign in to comment.