diff --git a/pfosten/app/Http/Controllers/RegistrationController.php b/pfosten/app/Http/Controllers/RegistrationController.php index 5cf5234f..e8737fe4 100644 --- a/pfosten/app/Http/Controllers/RegistrationController.php +++ b/pfosten/app/Http/Controllers/RegistrationController.php @@ -5,12 +5,20 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; +use App\Season; use Log; class RegistrationController extends Controller { public function create() { + $season=Season::getCurrent(); + if ($season) { + if ( Season::hasStandardLeague() || Season::hasQualifications() ) { + // Redirect to the home page + return redirect()->home(); + } + } return view('registration.create'); } diff --git a/pfosten/resources/views/main.blade.php b/pfosten/resources/views/main.blade.php index 72b5ca79..c94ea697 100644 --- a/pfosten/resources/views/main.blade.php +++ b/pfosten/resources/views/main.blade.php @@ -27,12 +27,14 @@ @if (!Auth::check())
-