paths and permissions for report entities.

This commit is contained in:
Naomi 2018-09-17 09:26:30 +01:00
parent e02721217b
commit 354bb0adba
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
opencase_reporting.reporting:
title: 'Reporting'
menu_name: main
url: internal:/opencase/reporting
url: internal:/opencase/reporting/opencase_reports
weight: 1
# OpenCase Report menu items definition

View File

@ -23,7 +23,7 @@ use Drupal\Core\Config\Entity\ConfigEntityBase;
* },
* },
* config_prefix = "opencase_report",
* admin_permission = "administer site configuration",
* admin_permission = "use opencase",
* entity_keys = {
* "id" = "id",
* "label" = "label",
@ -34,7 +34,7 @@ use Drupal\Core\Config\Entity\ConfigEntityBase;
* "add-form" = "/opencase/reporting/opencase_report/add",
* "edit-form" = "/opencase/reporting/opencase_report/{opencase_report}/edit",
* "delete-form" = "/opencase/reporting/opencase_report/{opencase_report}/delete",
* "collection" = "/opencase/reporting/opencase_report"
* "collection" = "/opencase/reporting/opencase_reports"
* }
* )
*/

View File

@ -1,5 +1,5 @@
use opencase:
title: 'Use OpenCase'
description: 'Use the OpenCase case management system'
restrict access: true
title: 'Use OpenCase'
description: 'Use the OpenCase case management system'
restrict access: true