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:
parent
7be517f0c3
commit
76c4cc982f
@ -21,10 +21,21 @@ class MigrationLookup
|
|||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($guard == 'user') {
|
|
||||||
|
|
||||||
}
|
//need to wrap an additional block over this to funnel users in a particular range
|
||||||
|
|
||||||
|
if ($guard == 'user') {
|
||||||
|
|
||||||
|
if(request()->is('migration/*') || request()->is('settings/*')) {
|
||||||
|
|
||||||
|
return $next($request);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect('/settings/account_management');
|
||||||
|
|
||||||
return $next($request);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user