Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.124
diff -u -p -r1.124 webform.module
--- webform.module	15 Mar 2008 01:03:29 -0000	1.124
+++ webform.module	16 Dec 2008 18:29:09 -0000
@@ -127,14 +127,20 @@ function webform_menu() {
   // Node component forms.
   $items['node/%webform_menu/edit/components/%webform_menu_component'] = array(
     'page arguments' => array('webform_component_edit_form', 1, 4),
+    'access callback' => 'node_access',
+    'access arguments' => array('update', 1),
     'type' => MENU_LOCAL_TASK,
   );
   $items['node/%webform_menu/edit/components/%webform_menu_component/clone'] = array(
     'page arguments' => array('webform_component_edit_form', 1, 4, TRUE),
+    'access callback' => 'node_access',
+    'access arguments' => array('update', 1),
     'type' => MENU_LOCAL_TASK,
   );
   $items['node/%webform_menu/edit/components/%webform_menu_component/delete'] = array(
     'page arguments' => array('webform_component_delete_form', 1, 4),
+    'access callback' => 'node_access',
+    'access arguments' => array('update', 1),
     'type' => MENU_LOCAL_TASK,
   );
 
@@ -153,6 +159,8 @@ function webform_menu() {
     'title' => 'Submissions',
     'page callback' => 'webform_results_submissions',
     'page arguments' => array(1),
+    'access callback' => 'user_access',
+    'access arguments' => array('access webform results'),
     'weight' => 4,
     'type' => MENU_DEFAULT_LOCAL_TASK,
   );
@@ -160,6 +168,8 @@ function webform_menu() {
     'title' => 'Analysis',
     'page callback' => 'webform_results_analysis',
     'page arguments' => array(1),
+    'access callback' => 'user_access',
+    'access arguments' => array('access webform results'),
     'weight' => 5,
     'type' => MENU_LOCAL_TASK,
   );
@@ -167,6 +177,8 @@ function webform_menu() {
     'title' => 'Table',
     'page callback' => 'webform_results_table',
     'page arguments' => array(1),
+    'access callback' => 'user_access',
+    'access arguments' => array('access webform results'),
     'weight' => 6,
     'type' => MENU_LOCAL_TASK,
   );
@@ -174,6 +186,8 @@ function webform_menu() {
     'title' => 'Download',
     'page callback' => 'webform_results_download',
     'page arguments' => array(1),
+    'access callback' => 'user_access',
+    'access arguments' => array('access webform results'),
     'weight' => 7,
     'type' => MENU_LOCAL_TASK,
   );
@@ -200,6 +214,7 @@ function webform_menu() {
     'title' => 'View',
     'page callback' => 'webform_client_form_load',
     'page arguments' => array(1, 3, FALSE, FALSE),
+    'access callback' => 'webform_submission_access',
     'access arguments' => array(1, 3, 'view'),
     'weight' => 0,
     'type' => MENU_DEFAULT_LOCAL_TASK,
@@ -208,6 +223,7 @@ function webform_menu() {
     'title' => 'Edit',
     'page callback' => 'webform_client_form_load',
     'page arguments' => array(1, 3, TRUE, FALSE),
+    'access callback' => 'webform_submission_access',
     'access arguments' => array(1, 3, 'edit'),
     'weight' => 1,
     'type' => MENU_LOCAL_TASK,
@@ -216,6 +232,7 @@ function webform_menu() {
     'title' => 'Delete',
     'page callback' => 'webform_client_form_load',
     'page arguments' => array('webform_submission_delete_form', 1, 3),
+    'access callback' => 'webform_submission_access',
     'access arguments' => array(1, 3, 'delete'),
     'weight' => 2,
     'type' => MENU_LOCAL_TASK,
