Index: openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql,v diff -u -r1.13 -r1.14 --- openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql 22 Feb 2002 21:37:12 -0000 1.13 +++ openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql 22 Feb 2002 22:12:10 -0000 1.14 @@ -61,26 +61,6 @@ - - - select count(*) - from ( - select 1 - from cr_items i left join cr_revisions r on (i.live_revision = r.revision_id), acs_objects o - where i.item_id = o.object_id - and i.parent_id = :folder_id - and acs_permission__permission_p(i.item_id, :user_id, 'read') = 't' - and i.content_type = 'file_storage_object' - union - select 1 - from cr_items i, cr_folders f - where i.item_id = f.folder_id - and i.parent_id = :folder_id - and acs_permission__permission_p(f.folder_id, :user_id, 'read') = 't' - ) foo - - -