Index: openacs-4/packages/file-storage/www/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/index.vuh,v diff -u -r1.5.2.2 -r1.5.2.3 --- openacs-4/packages/file-storage/www/index.vuh 9 Jun 2016 09:13:26 -0000 1.5.2.2 +++ openacs-4/packages/file-storage/www/index.vuh 11 Jul 2017 14:31:29 -0000 1.5.2.3 @@ -16,15 +16,16 @@ ns_return 404 text/plain "File Not Found" ad_script_abort } +set user_id [ad_conn user_id] permission::require_permission \ -object_id $file_item_id \ -privilege read \ --party_id [ad_conn user_id] + -party_id $user_id set file_live_revision [content::item::get_live_revision -item_id $file_item_id] if {[apm_package_installed_p views]} { - views::record_view -object_id $file_item_id -viewer_id $user_id + views::record_view -object_id $file_item_id -viewer_id $user_id }