diff --git a/GSVnet/Core/Composers/NavigationViewComposer.php b/GSVnet/Core/Composers/NavigationViewComposer.php index 738967546..b57d256ef 100644 --- a/GSVnet/Core/Composers/NavigationViewComposer.php +++ b/GSVnet/Core/Composers/NavigationViewComposer.php @@ -270,6 +270,14 @@ private function getStructure() // ], + 'activiteiten' => [ + 'title' => 'Activiteiten', + 'url' => action('EventController@showIndex'), + 'visible' => function(){ + return Auth::check() && Gate::allows('events.show-private'); + } + ], + 'jaarbundel' => [ 'title' => 'Jaarbundel', 'url' => action('UserController@showUsers'), @@ -342,6 +350,13 @@ private function getStructure() return Gate::allows('docs.show'); } ], + 'admin' => [ + 'title' => 'Admin', + 'url' => action('Admin\AdminController@index'), + 'visible' => function(){ + return Gate::allows('admin.show'); + } + ], 'sponsorprogramma' => [ 'title' => 'Sponsors', 'url' => action('HomeController@sponsorProgram'), diff --git a/app/Http/routes.php b/app/Http/routes.php index b4ca14581..960b3a91d 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -10,7 +10,7 @@ // Route::get('kiezel', 'HomeController@showKiezel'); // Kei 2020 -Route::get('kei', 'HomeController@showKei'); +// Route::get('kei', 'HomeController@showKei'); // Privacy-related stuff Route::get('privacy-statement', 'PublicFilesController@showPrivacyStatement'); diff --git a/config/permissions.php b/config/permissions.php index c45afcba3..e48320bd6 100644 --- a/config/permissions.php +++ b/config/permissions.php @@ -89,6 +89,10 @@ 'senate' => true ], + 'admin.show' => [ + 'type' => [User::MEMBER, User::REUNIST] + ], + 'admin' => [ 'committee' => ['webcie'] ],