1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Working on migration funnel

This commit is contained in:
David Bomba 2022-03-21 12:53:04 +11:00
parent 7be517f0c3
commit 76c4cc982f
2 changed files with 16 additions and 5 deletions

View File

@ -21,10 +21,21 @@ class MigrationLookup
return $next($request); return $next($request);
} }
//need to wrap an additional block over this to funnel users in a particular range
if ($guard == 'user') { if ($guard == 'user') {
} if(request()->is('migration/*') || request()->is('settings/*')) {
return $next($request); return $next($request);
}
}
return redirect('/settings/account_management');
} }
} }

View File

@ -123,7 +123,7 @@ if (Utils::isTravis()) {
Route::get('/check_data', 'AppController@checkData'); Route::get('/check_data', 'AppController@checkData');
} }
Route::group(['middleware' => ['lookup:user', 'auth:user']], function () { Route::group(['middleware' => ['lookup:user', 'auth:user','migration_channel:user']], function () {
Route::get('logged_in', 'HomeController@loggedIn'); Route::get('logged_in', 'HomeController@loggedIn');
Route::get('dashboard', 'DashboardController@index'); Route::get('dashboard', 'DashboardController@index');
Route::get('dashboard_chart_data/{group_by}/{start_date}/{end_date}/{currency_id}/{include_expenses}', 'DashboardController@chartData'); Route::get('dashboard_chart_data/{group_by}/{start_date}/{end_date}/{currency_id}/{include_expenses}', 'DashboardController@chartData');