Index: openacs-4/packages/attachments/www/download/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/download/index.vuh,v diff -u -N -r1.3 -r1.3.2.1 --- openacs-4/packages/attachments/www/download/index.vuh 7 Aug 2017 23:48:04 -0000 1.3 +++ openacs-4/packages/attachments/www/download/index.vuh 11 Jul 2019 16:01:34 -0000 1.3.2.1 @@ -15,12 +15,14 @@ # Permission check permission::require_permission -object_id $object_id -privilege read -# Get the live version + + +# Get the live version # (and check that this is the right attachment while we're at it) set version_id [db_string select_version_id {} -default {}] if {$version_id eq ""} { - ad_return_complaint "bad attachment" + ad_return_complaint 1 "bad attachment" ad_script_abort return }