mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Working on migration funnel
This commit is contained in:
parent
7be517f0c3
commit
76c4cc982f
@ -21,10 +21,21 @@ class MigrationLookup
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
if ($guard == 'user') {
|
||||
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
//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');
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ if (Utils::isTravis()) {
|
||||
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('dashboard', 'DashboardController@index');
|
||||
Route::get('dashboard_chart_data/{group_by}/{start_date}/{end_date}/{currency_id}/{include_expenses}', 'DashboardController@chartData');
|
||||
|
Loading…
x
Reference in New Issue
Block a user