Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql,v diff -u -r1.46.2.1 -r1.46.2.2 --- openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql 1 Jul 2005 19:58:37 -0000 1.46.2.1 +++ openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql 26 Nov 2005 21:22:53 -0000 1.46.2.2 @@ -185,7 +185,8 @@ -- parent_id = 0 means that this is a mount point if new__parent_id != 0 and - content_folder__is_registered(new__parent_id,''content_folder'',''f'') = ''f'' then + content_folder__is_folder(new__parent_id) and + content_folder__is_registered(new__parent_id,''content_folder'',''f'') = ''f'' then raise EXCEPTION ''-20000: This folder does not allow subfolders to be created''; return null;