move grant budgets menu to grants menu, remove need for Administer CiviCRM permission

This commit is contained in:
Jon Goldberg 2019-06-18 14:48:28 -04:00
parent 15159960b2
commit 75cee740f7
No known key found for this signature in database
GPG Key ID: C2D2247364F9DB13

View File

@ -193,13 +193,12 @@ function annualgrantbudgets_civicrm_entityTypes(&$entityTypes) {
* *
*/ */
function annualgrantbudgets_civicrm_navigationMenu(&$menu) { function annualgrantbudgets_civicrm_navigationMenu(&$menu) {
_annualgrantbudgets_civix_insert_navigation_menu($menu, 'Administer/CiviGrant', [ _annualgrantbudgets_civix_insert_navigation_menu($menu, 'Grants', [
'label' => ts('Grant Budget', ['domain' => 'org.agbu.annualgrantbudgets']), 'label' => ts('Grant Budget', ['domain' => 'org.agbu.annualgrantbudgets']),
'name' => 'grant_annual_budget', 'name' => 'grant_annual_budget',
'url' => CRM_Utils_System::url('civicrm/grant/annual/budgets', 'reset=1&action=browse', TRUE), 'url' => CRM_Utils_System::url('civicrm/grant/annual/budgets', 'reset=1&action=browse', TRUE),
'active' => 1, 'active' => 1,
'permission_operator' => 'OR', 'permission' => 'access CiviGrant',
'permission' => 'access CiviGrant,administer CiviCRM',
]); ]);
_annualgrantbudgets_civix_navigationMenu($menu); _annualgrantbudgets_civix_navigationMenu($menu);
} }