Index: project.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/project.inc,v
retrieving revision 1.115
diff -u -F^f -r1.115 project.inc
--- project.inc	25 Aug 2007 17:54:54 -0000	1.115
+++ project.inc	13 Oct 2007 00:04:43 -0000
@@ -440,11 +440,13 @@ function project_project_access($op, $no
 
   switch ($op) {
     case 'view':
-      if (user_access('administer projects')) {
-         return TRUE;
+      // Since this function is shared for project_release nodes, we have to
+      // be careful what node we pass to project_check_admin_access().
+      if ($node->type != 'project_project') {
+        $node = node_load($node->pid);
       }
-      if (user_access('access own projects') && $node->uid == $user->uid) {
-         return TRUE;
+      if (project_check_admin_access($node)) {
+        return TRUE;
       }
       if (!user_access('access projects')) {
          return FALSE;
