Fixed - better handle admin routes when user is not logged in

Redirect to login instead of just showing forbidden
This commit is contained in:
snipe 2018-02-21 05:51:49 -08:00
parent dbc16a6c9b
commit a730cd1c51

View file

@ -124,7 +124,7 @@ Route::group(['middleware' => 'auth'], function () {
Route::group([ 'prefix' => 'admin','middleware' => ['authorize:superuser']], function () { Route::group([ 'prefix' => 'admin','middleware' => ['auth', 'authorize:superuser']], function () {
Route::get('settings', ['as' => 'settings.general.index','uses' => 'SettingsController@getSettings' ]); Route::get('settings', ['as' => 'settings.general.index','uses' => 'SettingsController@getSettings' ]);
Route::post('settings', ['as' => 'settings.general.save','uses' => 'SettingsController@postSettings' ]); Route::post('settings', ['as' => 'settings.general.save','uses' => 'SettingsController@postSettings' ]);