mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 22:59:58 +08:00
Added permission system
This commit is contained in:
@ -11,12 +11,14 @@
|
||||
|
|
||||
*/
|
||||
|
||||
|
||||
Route::get('/test', function () {
|
||||
return Auth::user()->can('users-edit');
|
||||
});
|
||||
|
||||
// Authentication routes...
|
||||
Route::group(['middleware' => 'auth'], function() {
|
||||
Route::group(['middleware' => 'auth'], function () {
|
||||
|
||||
Route::group(['prefix' => 'books'], function() {
|
||||
Route::group(['prefix' => 'books'], function () {
|
||||
|
||||
// Books
|
||||
Route::get('/', 'BookController@index');
|
||||
|
Reference in New Issue
Block a user