Index: actions.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/actions/actions.install,v
retrieving revision 1.9
diff -u -r1.9 actions.install
--- actions.install	19 May 2008 02:59:27 -0000	1.9
+++ actions.install	24 Jul 2008 01:40:34 -0000
@@ -175,4 +175,20 @@
       break;
   }
   return $ret;
-}
\ No newline at end of file
+}
+
+/**
+ * Remove the underscores from the administer actions permission
+ * on existing permission assignments.
+ *
+ * @return array
+ */
+function actions_update_5201() {
+  $ret = array();
+  $result = db_query("SELECT rid, perm FROM {permission} WHERE perm LIKE '%administer_actions%'");
+  while ($permission = db_fetch_object($result)) {
+    $permission->perm = str_replace('administer_actions', 'administer actions', $permission->perm);
+    $ret[] = update_sql("UPDATE {permission} SET perm = '{$permission->perm}' WHERE rid = {$permission->rid}");
+  }
+  return $ret;
+}
Index: actions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/actions/actions.module,v
retrieving revision 1.39
diff -u -r1.39 actions.module
--- actions.module	5 May 2008 15:08:38 -0000	1.39
+++ actions.module	24 Jul 2008 01:40:34 -0000
@@ -46,7 +46,7 @@
  */
 function actions_menu($may_cache) {
   $items = array();
-  $access = user_access('administer_actions');
+  $access = user_access('administer actions');
 
   if ($may_cache) {
     $items[] = array(
@@ -175,7 +175,7 @@
  * Implementation of hook_perm().
  */
 function actions_perm() {
-  return array('administer_actions');
+  return array('administer actions');
 }
 
 /**
