mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed - better handle admin routes when user is not logged in
Redirect to login instead of just showing forbidden
This commit is contained in:
parent
dbc16a6c9b
commit
a730cd1c51
|
@ -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' ]);
|
||||||
|
|
Loading…
Reference in a new issue