Index: webform_report.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform_report/webform_report.module,v
retrieving revision 1.2.2.55.2.43.2.2
diff -u -r1.2.2.55.2.43.2.2 webform_report.module
--- webform_report.module	18 Jun 2010 20:33:06 -0000	1.2.2.55.2.43.2.2
+++ webform_report.module	28 Aug 2010 20:11:54 -0000
@@ -38,17 +38,16 @@
 /**
  * Implementation of hook_access
  */
-function webform_report_access($op, $node, $account = NULL) {
+function webform_report_access($op, $node) {
+
   global $user;
-  if(empty($account)) {
-    $account = $user;
-  }
+  
   switch ($op) {
     case 'view':
-      return user_access('access webform reports', $account);
+      return user_access('access webform reports');
       break;
     case 'create':
-      return user_access('create webform reports', $account);
+      return user_access('create webform reports');
       break;
     case 'update':
     case 'delete':
@@ -97,7 +96,7 @@
  * Implementation of hook_menu()
  */
 function webform_report_menu() {
-  global $user;
+
   $items = array();
 
   $items['admin/content/webform_report'] = array(
@@ -114,7 +113,7 @@
     'page callback' => 'node_page_edit',
     'page arguments' => array(1),
     'access callback' => 'webform_report_access',
-    'access arguments' => array('update', 1, $user),
+    'access arguments' => array('update', 1),
     'weight' => 1,
     'type' => MENU_DEFAULT_LOCAL_TASK
   );
@@ -123,7 +122,7 @@
     'page callback' => 'drupal_get_form',
     'page arguments' => array('webform_report_criteria_form', 1),
     'access callback' => 'webform_report_access',
-    'access arguments' => array('update', 1, $user),
+    'access arguments' => array('update', 1),
     'file' => 'webform_report_criteria.inc',
     'weight' => 2,
     'type' => MENU_LOCAL_TASK
@@ -133,7 +132,7 @@
     'page callback' => 'webform_report_csv',
     'page arguments' => array(1),
     'access callback' => 'webform_report_access',
-    'access arguments' => array('view', 1, $user),
+    'access arguments' => array('view', 1),
     'file' => 'webform_report.inc',
     'type' => MENU_CALLBACK
   );

