--- activitystream.module (saved version)
+++ (current document)
@@ -83,6 +83,24 @@
   );
 }
 
+function activitystream_access($op, $node, $account) {
+  if ($op == 'update') {
+    if (user_access('edit own stream items', $account) && ($account->uid == $node->uid)) {
+      return TRUE;
+    }
+    return user_access('edit any stream item', $account);
+  }
+
+  if ($op == 'delete') {
+    if (user_access('delete own stream items', $account) && ($account->uid == $node->uid)) {
+      return TRUE;
+    }
+    return user_access('delete any stream item', $account);
+  }
+
+}
+
+
 /**
  * Implementation of hook_nodeapi(). 
  * When a node is deleted, also delete the associated record in the stream table.
