Fixes dev/core#2619
https://lab.civicrm.org/dev/core/-/issues/2619
->addValue('icon', 'crm-i fa-search-plus')
->addValue('has_separator', 2)
->addValue('weight', 99)
+ ->addValue('permission', 'administer CiviCRM data')
->execute();
}
return TRUE;
}
+ /**
+ * Upgrade 1004 - fix menu permission.
+ * @return bool
+ */
+ public function upgrade_1004() {
+ $this->ctx->log->info('Applying update 1000 - fix menu permission.');
+ CRM_Core_DAO::executeQuery("UPDATE civicrm_navigation SET permission = 'administer CiviCRM data' WHERE url = 'civicrm/admin/search'");
+ return TRUE;
+ }
+
}
<item>
<path>civicrm/admin/search</path>
<page_callback>CRM_Search_Page_Admin</page_callback>
- <access_arguments>administer CiviCRM</access_arguments>
+ <access_arguments>administer CiviCRM data</access_arguments>
</item>
</menu>