Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkje committed Mar 12, 2021
2 parents 811db5a + c7532ad commit 2b33d4e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions GSVnet/Core/Composers/NavigationViewComposer.php
Expand Up @@ -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'),
Expand Down Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion app/Http/routes.php
Expand Up @@ -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');
Expand Down
4 changes: 4 additions & 0 deletions config/permissions.php
Expand Up @@ -89,6 +89,10 @@
'senate' => true
],

'admin.show' => [
'type' => [User::MEMBER, User::REUNIST]
],

'admin' => [
'committee' => ['webcie']
],
Expand Down

0 comments on commit 2b33d4e

Please sign in to comment.