Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql,v
diff -u -N -r1.35.2.2 -r1.35.2.3
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql	11 Feb 2003 17:04:24 -0000	1.35.2.2
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql	13 Feb 2003 22:32:14 -0000	1.35.2.3
@@ -691,6 +691,9 @@
   -- Delete dynamic/generic attributes
   delete from acs_attribute_values where object_id = delete__object_id;
 
+  -- Delete direct permissions records.
+  delete from acs_permissions where object_id = delete__object_id;
+
   -- select table_name, id_column
   --  from acs_object_types
   --  start with object_type = (select object_type
