Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.776.2.20
diff -u -p -r1.776.2.20 node.module
--- modules/node/node.module	12 Sep 2007 07:49:35 -0000	1.776.2.20
+++ modules/node/node.module	18 Sep 2007 22:23:51 -0000
@@ -798,6 +798,8 @@ function node_perm() {
     if ($type->module == 'node') {
       $name = check_plain($type->type);
       $perms[] = 'create '. $name .' content';
+      $perms[] = 'delete own '. $name .' content';
+      $perms[] = 'delete '. $name .' content';
       $perms[] = 'edit own '. $name .' content';
       $perms[] = 'edit '. $name .' content';
     }
@@ -2995,11 +2997,17 @@ function node_content_access($op, $node)
     return user_access('create '. $type .' content');
   }
 
-  if ($op == 'update' || $op == 'delete') {
+  if ($op == 'update') {
     if (user_access('edit '. $type .' content') || (user_access('edit own '. $type .' content') && ($user->uid == $node->uid))) {
       return TRUE;
     }
   }
+
+  if ($op == 'delete') {
+    if (user_access('delete '. $type .' content') || (user_access('delete own '. $type .' content') && ($user->uid == $node->uid))) {
+      return TRUE;
+    }
+  }
 }
 
 /**
