Use permissions to hide menu items instead of commenting them out

2022-03-24
Luca 3 years ago
parent 5a8d94e21e
commit f8d7c080d9

@ -92,11 +92,11 @@ function make_navigation()
$page = current_page(); $page = current_page();
$menu = []; $menu = [];
$pages = [ $pages = [
//'news' => __('News'), 'news' => __('News'),
//'meetings' => [__('Meetings'), 'user_meetings'], 'meetings' => [__('Meetings'), 'user_meetings'],
'user_shifts' => __('Shifts'), 'user_shifts' => __('Shifts'),
//'angeltypes' => __('Angeltypes'), 'angeltypes' => __('Angeltypes'),
//'questions' => [__('Ask the Heaven'), 'question.add'], 'questions' => [__('Ask the Heaven'), 'question.add'],
]; ];
foreach ($pages as $menu_page => $options) { foreach ($pages as $menu_page => $options) {

Loading…
Cancel
Save