Commit 7888accc authored by soxofaan's avatar soxofaan

explicit access parameters in hook_menu as per http://drupal.org/node/243389

parent f53eebc7
......@@ -62,11 +62,13 @@ function captcha_menu() {
// alternative CAPTCHA types and their own configuration page as local task)
$items['admin/user/captcha/captcha'] = array(
'title' => 'CAPTCHA',
'access arguments' => array('administer CAPTCHA settings'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
);
$items['admin/user/captcha/captcha/settings'] = array(
'title' => 'General settings',
'access arguments' => array('administer CAPTCHA settings'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
......@@ -76,6 +78,7 @@ function captcha_menu() {
'file' => 'captcha.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array('captcha_examples', 5, 6),
'access arguments' => array('administer CAPTCHA settings'),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
......@@ -84,6 +87,7 @@ function captcha_menu() {
'file' => 'captcha.admin.inc',
'page callback' => 'captcha_point_admin',
'page arguments' => array(5, 6),
'access arguments' => array('administer CAPTCHA settings'),
'type' => MENU_CALLBACK,
);
return $items;
......
......@@ -34,6 +34,7 @@ function image_captcha_menu() {
'file' => 'image_captcha.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array('image_captcha_settings_form'),
'access arguments' => array('administer CAPTCHA settings'),
'type' => MENU_LOCAL_TASK,
);
// callback for generating an image
......
......@@ -29,6 +29,7 @@ function text_captcha_menu() {
'file' => 'text_captcha.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array('text_captcha_settings_form'),
'access arguments' => array('administer CAPTCHA settings'),
'type' => MENU_LOCAL_TASK,
);
return $items;
......
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