--- F:/sw/Apache Group/Apache/htdocs/pride_drupal2/sites/all/modules/workflow_fields/.svn/text-base/workflow_fields.module.svn-base	Mon Nov 12 02:10:08 2007
+++ F:/sw/Apache Group/Apache/htdocs/pride_drupal2/sites/all/modules/workflow_fields/workflow_fields.module	Tue Nov 13 12:00:58 2007
@@ -207,12 +207,13 @@
  * Return an array of rids for the current user, given a node. 
  * Return -1 if the current user is the node author.
  */ 
 function _workflow_fields_compute_groups($node) {
   global $user;
-  if ($user->uid == $node->uid) return array(-1);
-  return array_keys($user->roles);
+  $groups = array_keys($user->roles); 
+  if ($user->uid == $node->uid) array_push($groups,-1); # add 'author' group.
+  return $groups;
 }
 
 /**
  * Process CCK node submission.
  * First load the original node before saving, then invoke the chain of hooks, then overwrite the hidden/disabled fields with their original values.
