mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Basic user admin.
This commit is contained in:
@@ -28,9 +28,8 @@ Route::group(
|
||||
);
|
||||
|
||||
/**
|
||||
* For other routes, it is only relevant that the user is authenticated.
|
||||
* For some other routes, it is only relevant that the user is authenticated.
|
||||
*/
|
||||
|
||||
Route::group(
|
||||
['middleware' => 'user-simple-auth'], function () {
|
||||
Route::get('/error', 'HomeController@displayError');
|
||||
@@ -389,3 +388,17 @@ Route::group(
|
||||
}
|
||||
);
|
||||
|
||||
/**
|
||||
* For the admin routes, the user must be logged in and have the role of 'owner'
|
||||
*/
|
||||
Route::group(
|
||||
['middleware' => 'admin'], function () {
|
||||
|
||||
// admin home
|
||||
Route::get('/admin', ['uses' => 'Admin\HomeController@index', 'as' => 'admin.index']);
|
||||
|
||||
// user manager
|
||||
Route::get('/admin/users', ['uses' => 'Admin\UserController@index', 'as' => 'admin.users']);
|
||||
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user