? private_high_priority.patch
Index: private.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/private/Attic/private.module,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 private.module
--- private.module	28 Jan 2007 21:31:40 -0000	1.1.2.2
+++ private.module	16 Feb 2007 16:45:35 -0000
@@ -84,14 +84,14 @@
  */
 function private_node_grants($account, $op) {
   if ($op == 'view' && user_access('access private content', $account)) {
-    $grants['example'] = array(1);
+    $grants['private'] = array(1);
   }
 
   if (($op == 'update' || $op == 'delete') && user_access('edit private content', $account)) {
-    $grants['example'] = array(1);
+    $grants['private'] = array(1);
   }
 
-  $grants['example_author'] = array($account->uid);
+  $grants['private_author'] = array($account->uid);
   return $grants;
 }
 
@@ -114,23 +114,23 @@
   if ($node->private) {
     $grants = array();
     $grants[] = array(
-      'realm' => 'example', 
+      'realm' => 'private', 
       'gid' => TRUE, 
       'grant_view' => TRUE, 
       'grant_update' => FALSE, 
       'grant_delete' => FALSE,
-      'priority' => 0,
+      'priority' => variable_get($private_priority, 100),
     );
 
     // For the example_author array, the GID is equivalent to a UID, which
     // means there are many many groups of just 1 user. 
     $grants[] = array(
-      'realm' => 'example_author', 
+      'realm' => 'private_author', 
       'gid' => $node->uid, 
       'grant_view' => TRUE, 
       'grant_update' => TRUE, 
       'grant_delete' => TRUE,
-      'priority' => 0,
+      'priority' => variable_get($private_priority, 100),
     );
     return $grants;
   }
