Menus other than "support" not available when logged out.

This commit is contained in:
Naomi 2018-12-15 14:21:38 +00:00
parent bfa4f27cf7
commit fa7516b03a
5 changed files with 18 additions and 6 deletions

View File

@ -1,12 +1,12 @@
opencase_defaults.report_on_clients: opencase_defaults.report_on_clients:
title: 'Clients' title: 'Clients'
description: 'Report on clients' description: 'Report on clients'
parent: opencase_defaults.reporting_menu parent: opencase_reporting.reporting_menu
url: internal:/opencase/reporting/clients url: internal:/opencase/reporting/clients
weight: 0 weight: 0
opencase_defaults.report_on_volunteers: opencase_defaults.report_on_volunteers:
title: 'Volunteers' title: 'Volunteers'
description: 'Report on volunteers' description: 'Report on volunteers'
parent: opencase_defaults.reporting_menu parent: opencase_reporting.reporting_menu
url: internal:/opencase/reporting/volunteers url: internal:/opencase/reporting/volunteers
weight: 1 weight: 1

View File

@ -1,6 +1,6 @@
opencase_defaults.reporting_menu: opencase_reporting.reporting_menu:
title: 'Reporting' title: 'Reporting'
description: 'Report on clients' description: 'Report on clients'
menu_name: opencase menu_name: opencase
url: internal:# route_name: opencase_reporting.reporting_menu
weight: 10 weight: 10

View File

@ -0,0 +1,4 @@
opencase_reporting.reporting_menu:
path: '/'
requirements:
_permission: 'use opencase'

View File

@ -2,7 +2,7 @@ opencase.cases:
title: 'Cases' title: 'Cases'
description: 'View cases' description: 'View cases'
menu_name: opencase menu_name: opencase
url: internal:# route_name: opencase.opencase_cases_menu
weight: 0 weight: 0
opencase.opencase_all_cases: opencase.opencase_all_cases:
title: 'All Cases' title: 'All Cases'
@ -16,7 +16,7 @@ opencase.opencase_add_people_menu:
title: 'Add people' title: 'Add people'
description: 'Add new people' description: 'Add new people'
menu_name: opencase menu_name: opencase
url: internal:# route_name: opencase.opencase_people_menu
weight: 1 weight: 1
opencase.add_people_links: opencase.add_people_links:
class: Drupal\opencase\Plugin\Menu\AddActorsMenuLink class: Drupal\opencase\Plugin\Menu\AddActorsMenuLink

View File

@ -2,3 +2,11 @@ opencase.opencase_admin_menu:
path: '/' path: '/'
requirements: requirements:
_permission: 'administer opencase entity bundles' _permission: 'administer opencase entity bundles'
opencase.opencase_cases_menu:
path: '/'
requirements:
_permission: 'use opencase'
opencase.opencase_people_menu:
path: '/'
requirements:
_permission: 'use opencase'