--- workflow_access.module Thu Aug 17 03:04:13 2008 +++ workflow_access.module Thu Apr 09 15:50:27 2009 @@ -34,7 +34,7 @@ while ($grant = db_fetch_object($result)) { $grants[] = array( 'realm' => ($grant->rid == -1) ? 'workflow_access_owner' : 'workflow_access', - 'gid' => ($grant->rid == -1) ? $node->uid : $grant->rid, + 'gid' => ($grant->rid == -1) ? ((int)$node->uid ? $node->uid : 1) : $grant->rid, 'grant_view' => $grant->grant_view, 'grant_update' => $grant->grant_update, 'grant_delete' => $grant->grant_delete