Commit 2d417f18 authored by RoSk0's avatar RoSk0

#12348: Added access checks in crm_core_match.

parent 94f75639
......@@ -59,13 +59,12 @@ function crm_core_match_hook_info() {
* Implements hook_menu().
*/
function crm_core_match_menu() {
// TODO: Check proper prmissions.
$items['admin/config/crm-core/match'] = array(
'title' => 'Matching Engines',
'description' => 'Configure the default rules for matching duplicate contacts in CRM Core.',
'page callback' => 'drupal_get_form',
'page arguments' => array('crm_core_match_admin_config_engines_form'),
'access callback' => TRUE,
'access arguments' => array('administer matching engines'),
'file' => 'crm_core_match.admin.inc',
);
......@@ -79,7 +78,7 @@ function crm_core_match_menu() {
'type' => MENU_CALLBACK,
'page callback' => 'crm_core_match_engine_status_toggle',
'page arguments' => array(5, 6),
'access callback' => TRUE,
'access arguments' => array('administer matching engines'),
);
$items['crm-core/crm-core-match/check-rules/%crm_core_contact'] = array(
......@@ -87,7 +86,7 @@ function crm_core_match_menu() {
'page arguments' => array(3),
'title callback' => 'crm_core_match_testing_page_title',
'title arguments' => array(3),
'access callback' => TRUE,
'access arguments' => array('view match information'),
'type' => MENU_SUGGESTED_ITEM,
'file' => 'crm_core_match.test.inc',
);
......@@ -95,7 +94,7 @@ function crm_core_match_menu() {
$items['crm-core/crm-core-match/info'] = array(
'page callback' => 'crm_core_match_info_page',
'title' => 'CRM Core Match info',
'access callback' => TRUE,
'access arguments' => array('view matching engine rules configuration'),
'type' => MENU_SUGGESTED_ITEM,
'file' => 'crm_core_match.test.inc',
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment