Index: openacs-4/packages/file-storage/tcl/file-storage-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/tcl/file-storage-procs-oracle.xql,v
diff -u -r1.20 -r1.21
--- openacs-4/packages/file-storage/tcl/file-storage-procs-oracle.xql 18 Nov 2002 18:01:04 -0000 1.20
+++ openacs-4/packages/file-storage/tcl/file-storage-procs-oracle.xql 17 May 2003 10:39:21 -0000 1.21
@@ -52,26 +52,28 @@
- select fc.*
- from (select fs_objects.object_id,
- fs_objects.name,
- fs_objects.live_revision,
- fs_objects.type,
- to_char(fs_objects.last_modified, 'YYYY-MM-DD HH24:MI:SS') as last_modified_ansi,
- fs_objects.content_size,
- fs_objects.url,
- fs_objects.key,
- fs_objects.sort_key,
- fs_objects.file_upload_name,
- case when fs_objects.last_modified >= (sysdate - :n_past_days) then 1 else 0 end as new_p,
- acs_permission.permission_p(fs_objects.object_id, :user_id, 'admin') as admin_p,
- acs_permission.permission_p(fs_objects.object_id, :user_id, 'delete') as delete_p,
- acs_permission.permission_p(fs_objects.object_id, :user_id, 'write') as write_p
- from fs_objects
- where fs_objects.parent_id = :folder_id) fc
- where 't' = (select acs_permission.permission_p(fc.object_id, :user_id, 'read') from dual)
- order by fc.sort_key,
- fc.name
+ select fs_objects.object_id,
+ fs_objects.name,
+ fs_objects.live_revision,
+ fs_objects.type,
+ to_char(fs_objects.last_modified, 'Month DD YYYY HH24:MI') as last_modified,
+ fs_objects.content_size,
+ fs_objects.url,
+ fs_objects.key,
+ fs_objects.sort_key,
+ fs_objects.file_upload_name,
+ case when fs_objects.last_modified >= (sysdate - :n_past_days) then 1 else 0 end as new_p,
+ acs_permission.permission_p(fs_objects.object_id, :user_id, 'admin') as admin_p,
+ acs_permission.permission_p(fs_objects.object_id, :user_id, 'delete') as delete_p,
+ acs_permission.permission_p(fs_objects.object_id, :user_id, 'write') as write_p
+ from fs_objects
+ where fs_objects.parent_id = :folder_id
+ and exists (select 1
+ from acs_object_party_privilege_map m
+ where m.object_id = fs_objects.object_id
+ and m.party_id = :user_id
+ and m.privilege = 'read')
+ order by fs_objects.sort_key, fs_objects.name
@@ -139,4 +141,12 @@
+
+
+ select content
+ from cr_revisions
+ where revision_id = $live_revision
+
+
+