Index: openacs-4/packages/file-storage/www/download/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/download/index.vuh,v diff -u -r1.3 -r1.4 --- openacs-4/packages/file-storage/www/download/index.vuh 31 Oct 2001 20:42:07 -0000 1.3 +++ openacs-4/packages/file-storage/www/download/index.vuh 29 Jun 2004 10:18:27 -0000 1.4 @@ -9,9 +9,14 @@ @creation-date 18 December 2000 @cvs-id $Id$ } { - version_id:integer + file_id:integer,optional + version_id:integer,optional } +if {![exists_and_not_null version_id]} { + set version_id [item::get_live_revision $file_id] +} + set user_id [ad_conn user_id] ad_require_permission $version_id "read"