Index: harvest_projects/harvest_projects.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/harvest/harvest_projects/harvest_projects.module,v
retrieving revision 1.1
diff -u -p -r1.1 harvest_projects.module
--- harvest_projects/harvest_projects.module	12 Apr 2010 19:31:35 -0000	1.1
+++ harvest_projects/harvest_projects.module	19 Aug 2010 11:05:34 -0000
@@ -352,9 +352,20 @@ function harvest_projects_category_acces
     return TRUE;
   }
   else {
-    foreach ($account->roles as $rid => $role_name) {
-      if ($category->roles[$rid]) {
-        return TRUE;
+    $all_empty = TRUE;
+    foreach ($category->roles as $value) {
+      if ($value != 0) {
+        $all_empty = FALSE;
+      }
+    }
+    if ($all_empty) {
+      return TRUE;
+    }
+    else {
+      foreach ($account->roles as $rid => $role_name) {
+        if ($category->roles[$rid]) {
+          return TRUE;
+        }
       }
     }
   }  
