Fixes issue preventing backend from signing in

This commit is contained in:
Samuel Georges 2015-03-01 15:10:04 +11:00
parent 7d3bac0bab
commit a8aa85a9f0
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<?php namespace Backend\Controllers;
use Redirect;
use BackendAuth;
use BackendMenu;
use Backend\Classes\Controller;
use Backend\Widgets\ReportContainer;
@ -29,7 +30,9 @@ class Index extends Controller
parent::__construct();
BackendMenu::setContextOwner('October.Backend');
new ReportContainer($this);
if (BackendAuth::check()) {
new ReportContainer($this);
}
}
public function index()